Fix #170429 youtube.com

This commit is contained in:
Adam Wróblewski
2024-01-12 15:20:30 +01:00
parent c76ccf0d0f
commit efcf525d53

View File

@@ -12791,6 +12791,10 @@ instagram.com#%#AG_onLoad(function(){if(-1==document.cookie.indexOf("ig_did")){c
! https://github.com/AdguardTeam/Scriptlets/issues/212
! TODO: replace the rule with a scriptlet `set-cookie-reload` when it is improved
youtube.com#%#(function(){window.self!==window.top||document.cookie.includes("visitor=")||(document.cookie="visitor=1; path=/;",document.cookie&&location.reload())})();
! https://github.com/AdguardTeam/AdguardFilters/issues/170429
! If there will be many complains about empty home page, then rule below can be used:
! youtube.com#%#//scriptlet('trusted-click-element', 'ytd-consent-bump-v2-lightbox .eom-buttons > .ytd-consent-bump-v2-lightbox > .ytd-consent-bump-v2-lightbox:nth-of-type(2) button.yt-spec-button-shape-next')
youtube.com#%#//scriptlet('trusted-click-element', 'ytd-consent-bump-v2-lightbox .eom-buttons > .ytd-consent-bump-v2-lightbox > .ytd-consent-bump-v2-lightbox button.yt-spec-button-shape-next')
! https://github.com/AdguardTeam/AdguardFilters/issues/169466
[$path=/m]consent.youtube.com#%#//scriptlet('trusted-click-element', 'form[action="https://consent.youtube.com/save"][jsaction] button[jsname="b3VHJd"]')
!+ PLATFORM(ios)