Update betterYoutube.js
This commit is contained in:
parent
3c14fd5cb3
commit
2bf5659051
|
@ -26,8 +26,6 @@ function preSetupProc() {
|
|||
mainContentArea = document.getElementsByTagName("ytd-watch")[0]; // BT control insert area and bg color setup
|
||||
|
||||
containerOfPlyrWndow = document.getElementById("top").children[0]; // Container of actual player - Used for floating window
|
||||
vdoPlyrAtts = document.getElementsByTagName("ytd-watch")[0]
|
||||
.getAttribute("video-id"); // Used for setting up thumbnails
|
||||
video = document.getElementsByTagName("video")[0]; // Video Controler
|
||||
part = "https://img.youtube.com/vi/";
|
||||
|
||||
|
@ -78,8 +76,10 @@ function preSetupProc() {
|
|||
|
||||
// Functions
|
||||
function showThumbImageVew(e) {
|
||||
videoSlug = vdoPlyrAtts;
|
||||
vdoPlyrAtts = video.baseURI; // Used for setting up thumbnails
|
||||
vdoPlyrAtts = vdoPlyrAtts.slice(32, 32+11);
|
||||
|
||||
videoSlug = vdoPlyrAtts;
|
||||
if (ytThumbImgMenu.style.display == "block") {
|
||||
ytThumbImgMenu.style.display = "none";
|
||||
ytThumbnailBttn.src = browser.extension.getURL("icons/thumbnailOff.png");
|
||||
|
|
Loading…
Reference in New Issue