update deprications
This commit is contained in:
parent
ec46bd5302
commit
64b2623790
|
@ -14,6 +14,7 @@ Better YouTube + works to improve the YouTube experience by providing quick acce
|
||||||
|
|
||||||
# Version: 1.5.8
|
# Version: 1.5.8
|
||||||
* Updated attribute search
|
* Updated attribute search
|
||||||
|
* Updated getUrl method caller
|
||||||
|
|
||||||
# Download
|
# Download
|
||||||
https://addons.mozilla.org/en-US/firefox/addon/better-youtube-plus/
|
https://addons.mozilla.org/en-US/firefox/addon/better-youtube-plus/
|
||||||
|
|
|
@ -281,7 +281,7 @@
|
||||||
clearInterval(ytVideoIntervalLoop);
|
clearInterval(ytVideoIntervalLoop);
|
||||||
loopingInterval = false;
|
loopingInterval = false;
|
||||||
ytLoopBttn.title = "Start Loop...";
|
ytLoopBttn.title = "Start Loop...";
|
||||||
let ipath = browser.extension.getURL("/icons/loopFalse.png");
|
let ipath = browser.runtime.getURL("/icons/loopFalse.png");
|
||||||
setbuttonImage(ytLoopBttn, ipath);
|
setbuttonImage(ytLoopBttn, ipath);
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
|
@ -291,13 +291,13 @@
|
||||||
console.log("Setting default loop marker...");
|
console.log("Setting default loop marker...");
|
||||||
video.loop = true;
|
video.loop = true;
|
||||||
ytLoopBttn.title = "Stop Loop...";
|
ytLoopBttn.title = "Stop Loop...";
|
||||||
let ipath = browser.extension.getURL("/icons/loopTrue.png");
|
let ipath = browser.runtime.getURL("/icons/loopTrue.png");
|
||||||
setbuttonImage(ytLoopBttn, ipath);
|
setbuttonImage(ytLoopBttn, ipath);
|
||||||
} else {
|
} else {
|
||||||
console.log("Unsetting default loop marker...");
|
console.log("Unsetting default loop marker...");
|
||||||
video.loop = false;
|
video.loop = false;
|
||||||
ytLoopBttn.title = "Start Loop...";
|
ytLoopBttn.title = "Start Loop...";
|
||||||
let ipath = browser.extension.getURL("/icons/loopFalse.png");
|
let ipath = browser.runtime.getURL("/icons/loopFalse.png");
|
||||||
setbuttonImage(ytLoopBttn, ipath);
|
setbuttonImage(ytLoopBttn, ipath);
|
||||||
}
|
}
|
||||||
return ;
|
return ;
|
||||||
|
@ -338,7 +338,7 @@
|
||||||
|
|
||||||
// Setup interval check for 1 sec and compare value of current pos to end
|
// Setup interval check for 1 sec and compare value of current pos to end
|
||||||
ytLoopBttn.title = "Stop Loop...";
|
ytLoopBttn.title = "Stop Loop...";
|
||||||
let ipath = browser.extension.getURL("/icons/loopTrue.png");
|
let ipath = browser.runtime.getURL("/icons/loopTrue.png");
|
||||||
setbuttonImage(ytLoopBttn, ipath);
|
setbuttonImage(ytLoopBttn, ipath);
|
||||||
loopingInterval = true;
|
loopingInterval = true;
|
||||||
|
|
||||||
|
@ -458,6 +458,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const setbuttonImage = (elm, path) => {
|
const setbuttonImage = (elm, path) => {
|
||||||
elm.style.backgroundImage = "url('" + browser.extension.getURL(path); + "')";
|
elm.style.backgroundImage = "url('" + browser.runtime.getURL(path); + "')";
|
||||||
}
|
}
|
||||||
}());
|
}());
|
||||||
|
|
Loading…
Reference in New Issue