Hover a thumbnail on youtube.com and click an icon at the right: "Not interested" and "Don't recommend channel"
< 脚本YT: not interested in one click的反馈
I've never encountered it. What is your browser? Tampermonkey/Violentmonkey/Greasemonkey version?
Firefox 98.0.1, Tampermonkey 4.15.6154. Diagnosed to see if any other script or addon was interfering but that wasn't the case.
Also I just now realized the rating I've put was wrong, should be "OK" (Functional, but has bugs)
I couldn't reproduce it, but I've changed some timings in the new version, so maybe it'll fix the problem.
Still happens.
https://i.imgur.com/6K4zHvN.png
To explain what I do:
Open the subscriptions page or a video in a new tab;
(For easier observation) DON'T scroll down;
Click "Not Interested" or similar shortcut button from your script;
Look at top-left corner or try (and fail) to scroll down.
It only happens once per tab.
Are there any warnings/errors in devtools console?
No warning nor error relevant to the script.
Welp, try the new version.
The bug persists. Maybe there could be a way to cheat it by having it think you clicked on a blank spot anywhere else after.
The script is already doing it, so I can't imagine how the bug is even physically possible.
OK, is there any way to have it close the element with the class "ytd-popup-container". Since that seems to be the pop up's class.
Knock Knock, think I found what was going on.
changed line 71
document.body.click();
to
setTimeout(() => {document.body.click()}, 100);
It now clicks off correctly!
Now (1.1.5) it works well, apparently.
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址
has a bug: sometimes clicking the "Not Interested" causes the dropdown to spawn from top-left