Skip to content

Commit

Permalink
Merge pull request #2565 from dodieboy/fixs
Browse files Browse the repository at this point in the history
Fixes
  • Loading branch information
ImprovedTube authored Sep 20, 2024
2 parents f2baf87 + 849ff46 commit bea8b41
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions js&css/extension/www.youtube.com/general/general.css
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ html[it-embeddedHideShare='true'] .ytp-share-button-visible:has(.ytp-share-icon)
--------------------------------------------------------------*/
html[it-pathname='/'][it-remove-home-page-shorts="true"] ytd-rich-section-renderer:has(ytd-rich-grid-slim-media[is-short]),
html[it-pathname='/feed/subscriptions'][it-remove-subscriptions-shorts="true"] ytd-rich-section-renderer:has(ytd-rich-grid-slim-media[is-short]),
/*are the two lines above outdated?*/
html[it-pathname='/'][it-remove-home-page-shorts="true"] ytd-rich-section-renderer:has(ytd-rich-shelf-renderer[is-shorts]),
html[it-pathname='/feed/subscriptions'][it-remove-subscriptions-shorts="true"] ytd-rich-section-renderer:has(ytd-rich-shelf-renderer[is-shorts]),
html[it-pathname='/feed/history'][it-remove-history-shorts="true"] ytd-reel-shelf-renderer,
html[it-pathname='/feed/trending'][it-remove-trending-shorts="true"] ytd-reel-shelf-renderer {
display: none !important;
Expand Down
7 changes: 5 additions & 2 deletions js&css/web-accessible/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,13 +227,15 @@ ImprovedTube.ytElementsHandler = function (node) {
setTimeout(function () {ImprovedTube.expandDescription(node);}, 300);
} else if (id === 'meta') {setTimeout(function () {ImprovedTube.expandDescription(node.querySelector('#more'));}, 200);
// } else if (id === 'below') { setTimeout(function () {}, 0);
} else if (id === 'panels') { setTimeout(function () { ImprovedTube.transcript(node); ImprovedTube.chapters(node);}, 200);
} else if (id === 'panels') { setTimeout(function () { ImprovedTube.transcript(node); ImprovedTube.chapters(node);ImprovedTube.elements.panels = node;}, 200);

Check warning on line 230 in js&css/web-accessible/functions.js

View workflow job for this annotation

GitHub Actions / lint-and-test

Missing whitespace after semicolon
} /* else if (name === 'TP-YT-PAPER-BUTTON') {
if ( (id === 'expand-sizer' || id === 'expand') && node.parentNode.id === 'description-inline-expander') {
setTimeout(function () {
ImprovedTube.expandDescription(node); console.log("EXPAND DESCRIPTION, OLD WAY")
}, 750);
}} */
} else if (id === 'panels') {

Check warning on line 237 in js&css/web-accessible/functions.js

View workflow job for this annotation

GitHub Actions / lint-and-test

Trailing spaces not allowed
ImprovedTube.elements.panels = node;
}
};

Expand Down Expand Up @@ -343,7 +345,7 @@ ImprovedTube.initPlayer = function () {
ImprovedTube.playerHamburgerButton();
ImprovedTube.playerControls();
ImprovedTube.expandDescription();
setTimeout(function () {ImprovedTube.forcedTheaterMode();}, 150);
setTimeout(function () {ImprovedTube.forcedTheaterMode(); }, 150);
if (location.href.indexOf('/embed/') === -1) { ImprovedTube.miniPlayer(); }
}
};
Expand Down Expand Up @@ -380,6 +382,7 @@ ImprovedTube.playerOnTimeUpdate = function () {

ImprovedTube.playerOnLoadedMetadata = function () {
setTimeout(function () {ImprovedTube.playerSize();}, 100);
setTimeout(function () { ImprovedTube.transcript(ImprovedTube.elements.panels); ImprovedTube.chapters(document.querySelector(ImprovedTube.elements.panels));}, 250);
};

ImprovedTube.playerOnPause = function (event) {
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"background": {
"service_worker": "background.js",
"scripts": ["background.js"],
"scripts": ["background.js"]
},
"action": {
"default_popup": "menu/index.html",
Expand Down

0 comments on commit bea8b41

Please sign in to comment.