diff --git a/src/Userscript/YouTubePlus.user.js b/src/Userscript/YouTubePlus.user.js index 55c1293..fe1ff30 100644 --- a/src/Userscript/YouTubePlus.user.js +++ b/src/Userscript/YouTubePlus.user.js @@ -1,5 +1,5 @@ // ==UserScript== -// @version 0.1.1 +// @version 0.1.2 // @name YouTube + // @namespace https://github.com/ParticleCore // @description YouTube with more freedom @@ -1591,7 +1591,7 @@ adverts.remove(); adverts = document.getElementById('header') || document.getElementById('feed-pyv-container') || document.getElementsByClassName('pyv-afc-ads-container')[0] || document.getElementsByClassName('ad-div')[0] || document.querySelector('.video-list-item:not(.related-list-item)'); } - if ((window.location.pathname === '/results' && sidebar && sidebar.querySelectorAll('*').length < 10) || (sidebar && ((parSets.GEN_HDE_RECM_SDBR && window.location.pathname === '/feed/subscriptions') || (parSets.GEN_HDE_SRCH_SDBR && window.location.pathname === '/results') || (parSets.GEN_HDE_CHN_SDBR && window.location.href.split(/\/(channel|user|c)\//).length > 1)))) { + if ((window.location.pathname === '/results' && sidebar && sidebar.querySelectorAll('*').length < 10) || (sidebar && ((parSets.GEN_HDE_RECM_SDBR && window.location.href.split('/feed/subscriptions').length > 1) || (parSets.GEN_HDE_SRCH_SDBR && window.location.pathname === '/results') || (parSets.GEN_HDE_CHN_SDBR && window.location.href.split(/\/(channel|user|c)\//).length > 1)))) { sidebar.remove(); } if (window.location.pathname === '/watch' && parSets.VID_HIDE_COMS > 1 && commSect) { @@ -1614,7 +1614,7 @@ } } } - if (window.location.pathname !== '/feed/subscriptions') { + if (window.location.href.split('/feed/subscriptions').length < 2) { document.documentElement.classList.remove('part_grid_subs'); } classes = setsList = commSect = sidebar = adverts = null; @@ -2292,7 +2292,7 @@ } i = list = button = navMenu = listTitle = videoList = null; } - if (window.location.pathname === '/feed/subscriptions' && !button && listTitle && videoList) { + if (window.location.href.split('/feed/subscriptions').length > 1 && !button && listTitle && videoList) { button = '