h5player
h5player copied to clipboard
[BUG]
Win7 x64 Opera 77.0.4054.90 Violentmonkeyv2.13.0
video.sibnet.ru
Воспроизведение рывками с длинными паузами.
function getTabId () {
return new Promise((resolve, reject) => {
-> window.GM_getTabs(function (obj) {
if (!obj.tabId) {
obj.tabId = getId();
window.GM_saveTabs(obj);
}
curTabId = obj.tabId;
resolve(obj.tabId);
});
})
}
Uncaught (in promise) TypeError: window.GM_getTabs is not a function
at HTML5 видео плеер улучшенный скрипт.user.js:3639
at new Promise (
Решения для меня
function getTabId () {
return new Promise((resolve, reject) => {
window.GM_getTabs(function (obj) {
if (!obj.tabId) {
obj.tabId = getId();
window.GM_saveTabs(obj);
}
curTabId = obj.tabId;
resolve(obj.tabId);
});
})
}
setTimeout(getTabId, 350);