5

cyfung1031
Hey! Are those scripts also present on any new Orion profiles you create via File -> Profiles -> New Profile?

    This probably looks like a script that Orion ships with to block youtube ads since the inbuilt adblocker was not powerful enough to do so.

    @dino Probably you know about this?

      joystmp
      @joystmp @dino

      I believe yes, but how can I disable it? There is no way to enable/disable these extra scripts.

      Those scripts are affecting the normal use of YouTube. I don't think Orion must have to use these scripts. They can be enabled by default, but users can choose to have different ways for ad blocking.

      When issues come, the issues are mixed with the extra script and Orion webkit engines. It is hard for finding the root cause.

      • dino replied to this.

        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.
        img

        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.
        img
        img

        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

          Excellent and thorough work @cyfung1031
          I have forwarded these requests to the developers and they are currently checking if these scripts are still needed for adequate ad blocking on YouTube. Support for scriptlets ( #7362) should be landing in the next release and I expect that these scripts are not at all needed anymore, meaning they will be removed.

          In any case, I agree that the user should be able to completely remove these scripts and that disabling the content blocker should do that.

          cyfung1031 for now we can use Copatibility Mode to do that, and for future releases, we can just remove that script, or disable that togather with other content-blockers.

            joystmp Technically yes, but after adding support for scriptlet support, the built-in adblocker also working good on youtube adblocking. We are working on finalizing about keeping the script as additional support, or if that's not really needed, we will remove that completely in future releases.

              No one is typing