The scripts are under kagi.ytab

I tried to use userscript extension to prevent its execution but in vain.
I tried to use debugger's uncatched error to find out when it is executed.

I don't know why someone placed these scripts without testing.
The execution phase for the script is not document-start
, so the userscript author expect document.body
exists.
But the extra script is executed just after document.documentElement
is attached like the document-start
case in userscript.
document.body
is not attached yet so the script could not work.
I just want to remove these rubbish in my Orion and I can use other means to do ad block.
To be honest, these scripts are quite low quality.


They assume video is here without checking the element existences.
I want the full control of enabling these low quality scripts or not.
I have already disabled the "Content Blockers" and "Tracking Prevention", still having these extra scripts.

Update: for anyone who wants to disable the youtube-adb "user-script" injected by Orion, please install this UserScript