Warning: fopen(/www/sites/greasyfork.icu/index/store/temp/ddfe875326ec36fe9184a85526655ec9.html): failed to open stream: No space left on device in /www/sites/greasyfork.icu/index/scriptsControl.php on line 132
Return YouTube Dislike - 反馈

Greasy Fork

Greasy Fork is available in English.

Return YouTube Dislike

Return of the YouTube Dislike, Based off https://www.returnyoutubedislike.com/

< 脚本 Return YouTube Dislike 的反馈

提问 / 留言

§
发布于:2022-07-23

So, it seems to be broken again. Here's a quick fix until it gets properly fixed.

Replacing

getButtons().children[1].querySelector("#text").innerText = dislikesCount;

with

getButtons().children[1].getElementsByTagName('a')[0].querySelector("#text").innerText = dislikesCount;

should get it working again normally.

Original code works fine when logged out(or in incognito). But when logged in buttons.children[1].querySelector("#text") returns null for some reason. There's probably a better solution, so feel free to continue debugging.

发布留言

登录以发布留言。