Use static elements to differentiate URL location

This commit is contained in:
Lawrence Hook
2022-11-02 18:10:26 -04:00
parent 3c817a7936
commit 1158752c96
2 changed files with 19 additions and 10 deletions
+14 -10
View File
@@ -4,7 +4,7 @@ html[global_enable="true"] ytd-mealbar-promo-renderer,
html[global_enable="true"] .ytd-display-ad-renderer,
/* Main */
html[global_enable="true"][on_homepage="true"][remove_homepage="true"] ytd-browse[page-subtype="home"],
html[global_enable="true"][remove_homepage="true"] ytd-browse[page-subtype="home"],
html[global_enable="true"][remove_sidebar="true"] #secondary > div.circle,
html[global_enable="true"][remove_sidebar="true"] #related,
html[global_enable="true"][remove_end_of_video="true"] .html5-endscreen,
@@ -27,11 +27,11 @@ html[global_enable="true"][remove_explore_section="true"] ytd-guide-section-rend
html[global_enable="true"][remove_more_section="true"] ytd-guide-section-renderer[rys_more_section],
/* Homepage */
html[global_enable="true"][on_homepage="true"][remove_header="true"] ytd-rich-grid-renderer > div#header,
html[global_enable="true"][on_homepage="true"][remove_all_but_one="true"] ytd-rich-grid-renderer > #contents > ytd-rich-grid-row:nth-child(n+2),
html[global_enable="true"][on_homepage="true"][remove_all_but_one="true"] ytd-rich-grid-renderer > #contents > ytd-continuation-item-renderer,
html[global_enable="true"][on_homepage="true"][remove_extra_rows="true"] ytd-rich-grid-renderer > #contents > ytd-rich-grid-row + ytd-rich-section-renderer,
html[global_enable="true"][on_homepage="true"][remove_infinite_scroll="true"] ytd-rich-grid-renderer > #contents > ytd-continuation-item-renderer,
html[global_enable="true"][remove_header="true"] ytd-browse[page-subtype="home"] ytd-rich-grid-renderer > div#header,
html[global_enable="true"][remove_all_but_one="true"] ytd-browse[page-subtype="home"] ytd-rich-grid-renderer > #contents > ytd-rich-grid-row:nth-child(n+2),
html[global_enable="true"][remove_all_but_one="true"] ytd-browse[page-subtype="home"] ytd-rich-grid-renderer > #contents > ytd-continuation-item-renderer,
html[global_enable="true"][remove_extra_rows="true"] ytd-browse[page-subtype="home"] ytd-rich-grid-renderer > #contents > ytd-rich-grid-row + ytd-rich-section-renderer,
html[global_enable="true"][remove_infinite_scroll="true"] ytd-browse[page-subtype="home"] ytd-rich-grid-renderer > #contents > ytd-continuation-item-renderer,
/* Video Player - UI*/
html[global_enable="true"][remove_entire_sidebar="true"] #secondary,
@@ -55,10 +55,11 @@ html[global_enable="true"][remove_comment_replies="true"] #replies.ytd-comment-t
html[global_enable="true"][remove_comment_upvotes="true"] #vote-count-middle.ytd-comment-action-buttons-renderer,
/* Search Results Page */
html[global_enable="true"][on_results_page="true"][remove_extra_results="true"] ytd-shelf-renderer,
html[global_enable="true"][on_results_page="true"][remove_shorts_results="true"] ytd-video-renderer[is_short="true"],
html[global_enable="true"][remove_thumbnail_mouseover_effect="true"] #mouseover-overlay,
html[global_enable="true"][remove_search_suggestions="true"] div.sbdd_a,
html[global_enable="true"][remove_search_promoted="true"] #container.ytd-search ytd-search-pyv-renderer,
html[global_enable="true"][remove_shorts_results="true"] #container.ytd-search ytd-video-renderer[is_short="true"],
html[global_enable="true"][remove_extra_results="true"] #container.ytd-search ytd-shelf-renderer,
html[global_enable="true"][remove_thumbnail_mouseover_effect="true"] #mouseover-overlay,
/* Subscriptions Page */
html[global_enable="true"][remove_sub_shorts="true"] ytd-grid-video-renderer[is_sub_short],
@@ -98,7 +99,10 @@ html[global_enable="true"][remove_entire_sidebar="true"] ytd-watch-flexy[flexy][
/* Mobile */
/**********
* Mobile *
**********/
html[global_enable="true"] ytm-companion-ad-renderer,
html[global_enable="true"] ytm-promoted-sparkles-web-renderer,
+5
View File
@@ -240,6 +240,11 @@ const SECTIONS = [
id: "remove_search_suggestions",
defaultValue: true
},
{
name: "Hide promoted videos",
id: "remove_search_promoted",
defaultValue: true
},
{
name: "Hide results - shorts",
id: "remove_shorts_results",