HatScripts / youtube-auto-liker

A userscript that automatically likes 👍 each video you watch on YouTube ▶️
68 stars 15 forks source link

Browser DOM Security Update Causing Malfunction #36

Open topfishowo opened 1 month ago

topfishowo commented 1 month ago

I've been experiencing some issues with the YouTube Auto-Liker extension you developed. It seems that a recent browser security update is affecting the normal operation of the plugin. image

https://web.dev/articles/trusted-types#fix-the-violations

HatScripts commented 1 month ago

I don't recognize the code in your screenshot. Where did you get it from?

topfishowo commented 1 month ago

I found an error in the component console after pressing Settings. image

topfishowo commented 1 month ago

from // @require https://raw.githubusercontent.com/sizzlemctwizzle/GM_config/master/gm_config.js

DrymarchonShaun commented 2 weeks ago

As far as I can tell, I managed to get this working (with copilot's help, I don't know anything about js) at https://github.com/DrymarchonShaun/youtube-auto-liker/tree/master by removing the settings menu entirely and storing the settings as userscript values directly.

(The remove-gm_config branch only includes the changes, in master I also changed the update urls to my forked repo)