你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/426637-reddit-comment-expander/discussions/100407,源站連結 點此以跳轉。
Expands reddit comments by default to mitigate the Crowd Control feature
< 脚本 Reddit Comment Expander 的反馈
many thanks for contributing.
do you have an example thread with crowd control on I can compare the change on?
if I go to https://old.reddit.com/r/gtaonline/comments/g6iyxh/2342020_weekly_gta_online_bonuses/fo9u4yt/
and do
let comments = document.querySelectorAll(".thing.collapsed-for-reason");
alert(comments.length); I get 2 results the not is successfully negating ".collapsed-for-reason"
If i do:
let comments = document.querySelectorAll(".thing.collapsed-reason");
alert(comments.length); I get 4 results as the not is not successfully negating ".collapsed-reason"
To get this working, I had to change Line #17. It looks like reddit changed the css class name.
Before:
let comments = document.querySelectorAll(".thing.collapsed:not(.collapsed-for-reason)");
After:
let comments = document.querySelectorAll(".thing.collapsed:not(.collapsed-reason)");