mirror of
https://github.com/lawrencehook/remove-youtube-suggestions.git
synced 2026-07-25 06:54:31 +00:00
version 4.3.75
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
"description": "Spend less time on YouTube. Customize YouTube's user interface to be less engaging.",
|
||||
"homepage_url": "https://github.com/lawrencehook/remove-youtube-suggestions",
|
||||
"manifest_version": 3,
|
||||
"version": "4.3.74",
|
||||
"version": "4.3.75",
|
||||
|
||||
"icons": {
|
||||
"16": "/images/16.png",
|
||||
|
||||
@@ -126,6 +126,7 @@ html[global_enable="true"][remove_sub_upcoming="true"] ytd-rich-item-renderer[ba
|
||||
html[global_enable="true"][remove_sub_premiere="true"] ytd-rich-item-renderer[badge-text="premiere"],
|
||||
html[global_enable="true"][remove_sub_vods="true"] ytd-rich-item-renderer[is_vod],
|
||||
|
||||
html[global_enable="true"][remove_sub_most_relevant="true"] ytd-rich-section-renderer[is_most_relevant],
|
||||
|
||||
/* Other */
|
||||
html[global_enable="true"][remove_notif_bell="true"] ytd-notification-topbar-button-renderer,
|
||||
|
||||
@@ -262,7 +262,8 @@ function runDynamicSettings() {
|
||||
|
||||
// Subscriptions page options (only if any sub-page settings are enabled)
|
||||
const subsSettingsEnabled = cache['remove_sub_shorts'] || cache['remove_sub_live'] ||
|
||||
cache['remove_sub_upcoming'] || cache['remove_sub_premiere'] || cache['remove_sub_vods'];
|
||||
cache['remove_sub_upcoming'] || cache['remove_sub_premiere'] || cache['remove_sub_vods'] ||
|
||||
cache['remove_sub_most_relevant'];
|
||||
if (onSubs && subsSettingsEnabled) {
|
||||
const badgeSelector = 'ytd-badge-supported-renderer';
|
||||
const upcomingBadgeSelector = 'ytd-thumbnail-overlay-time-status-renderer[overlay-style="UPCOMING"]';
|
||||
@@ -304,6 +305,18 @@ function runDynamicSettings() {
|
||||
updatedGridVideo?.setAttribute('is_vod', '');
|
||||
});
|
||||
|
||||
// "Most relevant" shelf
|
||||
if (cache['remove_sub_most_relevant']) {
|
||||
const shelves = qsa('ytd-rich-section-renderer ytd-rich-shelf-renderer');
|
||||
shelves.forEach(shelf => {
|
||||
const title = qs('span#title', shelf);
|
||||
if (title?.innerText.trim().toLowerCase() === 'most relevant') {
|
||||
const section = shelf.closest('ytd-rich-section-renderer');
|
||||
section?.setAttribute('is_most_relevant', '');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Reduce empty space.
|
||||
const subsRows = qsa('ytd-rich-grid-row');
|
||||
subsRows.forEach(row => {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"description": "Spend less time on YouTube. Customize YouTube's user interface to be less engaging.",
|
||||
"homepage_url": "https://github.com/lawrencehook/remove-youtube-suggestions",
|
||||
"manifest_version": 2,
|
||||
"version": "4.3.74",
|
||||
"version": "4.3.75",
|
||||
|
||||
"icons": {
|
||||
"16": "/images/16.png",
|
||||
|
||||
@@ -521,6 +521,12 @@ const SECTIONS = [
|
||||
defaultValue: false,
|
||||
premium: true,
|
||||
},
|
||||
{
|
||||
name: "Hide \"Most relevant\" section",
|
||||
id: "remove_sub_most_relevant",
|
||||
defaultValue: false,
|
||||
premium: true,
|
||||
},
|
||||
{
|
||||
name: "Hide live videos",
|
||||
id: "remove_sub_live",
|
||||
@@ -818,6 +824,7 @@ const idToShortId = {
|
||||
"remove_results_description": '93',
|
||||
"enable_theater": '94',
|
||||
"remove_playables": '95',
|
||||
"remove_sub_most_relevant": '96',
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user