Add a remove_logo_link option

This commit is contained in:
Lawrence Hook
2021-12-04 22:28:13 -05:00
parent 6ad9657d45
commit 468bc73fcf
5 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -22,6 +22,6 @@ html[global_enable="true"][foo=bar]
}
/* Disable Youtube logo's link to the homepage */
html[global_enable="true"][remove_home_link="true"] a[href="/"] {
html[global_enable="true"][remove_logo_link="true"] a[href="/"] {
pointer-events: none;
}
+2
View File
@@ -6,6 +6,7 @@ html[remove_sidebar="true"] .remove_sidebar .inactive,
html[remove_end_of_video="true"] .remove_end_of_video .inactive,
html[remove_info_cards="true"] .remove_info_cards .inactive,
html[remove_home_link="true"] .remove_home_link .inactive,
html[remove_logo_link="true"] .remove_logo_link .inactive,
html[remove_explore_link="true"] .remove_explore_link .inactive,
html[remove_comments="true"] .remove_comments .inactive,
html[remove_chat="true"] .remove_chat .inactive,
@@ -24,6 +25,7 @@ html[remove_sidebar="false"] .remove_sidebar .active,
html[remove_end_of_video="false"] .remove_end_of_video .active,
html[remove_info_cards="false"] .remove_info_cards .active,
html[remove_home_link="false"] .remove_home_link .active,
html[remove_logo_link="false"] .remove_logo_link .active,
html[remove_explore_link="false"] .remove_explore_link .active,
html[remove_comments="false"] .remove_comments .active,
html[remove_chat="false"] .remove_chat .active,
+1
View File
@@ -6,6 +6,7 @@ const SETTINGS_LIST = {
"remove_end_of_video": { defaultValue: true, eventType: 'change' },
"remove_info_cards": { defaultValue: false, eventType: 'change' },
"remove_home_link": { defaultValue: false, eventType: 'change' },
"remove_logo_link": { defaultValue: false, eventType: 'change' },
"remove_explore_link": { defaultValue: false, eventType: 'change' },
"remove_comments": { defaultValue: false, eventType: 'change' },
"remove_chat": { defaultValue: false, eventType: 'change' },
+1
View File
@@ -11,6 +11,7 @@ const SETTINGS_LIST = {
"remove_end_of_video": { defaultValue: true, eventType: 'click' },
"remove_info_cards": { defaultValue: false, eventType: 'click' },
"remove_home_link": { defaultValue: false, eventType: 'click' },
"remove_logo_link": { defaultValue: false, eventType: 'click' },
"remove_explore_link": { defaultValue: false, eventType: 'click' },
"remove_comments": { defaultValue: false, eventType: 'click' },
"remove_chat": { defaultValue: false, eventType: 'click' },
+4
View File
@@ -40,6 +40,10 @@
<fieldset>
<legend>Site navigation</legend>
<div class="remove_logo_link">
<div class="option_name_container"><a class="active">🚫</a><a class="inactive">🟢</a> Logo link</div>
</div>
<div class="remove_home_link">
<div class="option_name_container"><a class="active">🚫</a><a class="inactive">🟢</a> Home link</div>
</div>