Skip to content

Commit b5d77a2

Browse files
authored
Merge pull request #2694 from mneunomne/#2692
temporary fix for scriptlets that dont work
2 parents 57bc60e + 0e6ac4a commit b5d77a2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

filters/adnauseam.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -918,3 +918,9 @@ www.snooker.org###stickyAdContainer
918918

919919
# fix sainsburys checkout https://github.com/dhowe/AdNauseam/issues/2661
920920
@@||tags.tiqcdn.com/utag/sainsburys/groceries/prod/utag.sync.js
921+
922+
# temporary fix for #2692
923+
924+
www.youtube.com#@#+js(trusted-replace-node-text, script, (function serverContract(), '(()=>{if("YOUTUBE_PREMIUM_LOGO"===ytInitialData?.topbar?.desktopTopbarRenderer?.logo?.topbarLogoRenderer?.iconImage?.iconType||location.href.startsWith("https://www.youtube.com/tv#/")||location.href.startsWith("https://www.youtube.com/embed/"))return;document.addEventListener("DOMContentLoaded",(function(){const t=()=>{const t=document.getElementById("movie_player");if(!t)return;if(!t.getStatsForNerds?.()?.debug_info?.startsWith?.("SSAP, AD"))return;const e=t.getProgressState?.();e&&e.duration>0&&(e.loaded<e.duration||e.duration-e.current>1)&&t.seekTo?.(e.duration)};t(),new MutationObserver((()=>{t()})).observe(document,{childList:!0,subtree:!0})}));const t={apply:(t,e,o)=>{const n=o[0];return"function"==typeof n&&n.toString().includes("onAbnormalityDetected")&&(o[0]=function(){}),Reflect.apply(t,e,o)}};window.Promise.prototype.then=new Proxy(window.Promise.prototype.then,t)})();(function serverContract()', sedCount, 1)
925+
www.youtube.com#@#+js(trusted-edit-inbound-object, JSON.stringify, 0, ..client[?.clientName=="WEB"]+={"clientScreen":"CHANNEL"})
926+
www.youtube.com#@#+js(trusted-json-edit-fetch-request, ..client[?.clientName=="WEB"]+={"clientScreen":"CHANNEL"}, propsToMatch, /\/(player|get_watch)/)

0 commit comments

Comments
 (0)