You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MouseEvent.initMouseEvent() was deprecated, and so the script was not executing the click event. I updated the click() function to use MouseEvent().
The RegEx for the username href was also outdated. YouTube seems to use /channel/ instead of /user/ now. In addition, /w+ does not work with channel IDs, so I used a very greedy match instead.
I also removed some unused variables. Here's the script with fixes:
I couldn't find a repo for this script, or your e-mail address, so I'm posting here.
I fixed two issues with the YouTube Auto-Like Videos script:
MouseEvent.initMouseEvent()
was deprecated, and so the script was not executing the click event. I updated theclick()
function to useMouseEvent()
.href
was also outdated. YouTube seems to use/channel/
instead of/user/
now. In addition,/w+
does not work with channel IDs, so I used a very greedy match instead.I also removed some unused variables. Here's the script with fixes:
https://gist.github.com/fireundubh/1d03fb63388a6ee63eece1691afe8a45
The text was updated successfully, but these errors were encountered: