Greasy Fork is available in English.

Reddit Comment Expander

Expands reddit comments by default to mitigate the Crowd Control feature

< 脚本Reddit Comment Expander的反馈

评价:好评 - 脚本一切正常

§
发表于:2021-10-01

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)");

nascent作者
§
发表于:2021-10-01

many thanks for contributing.
do you have an example thread with crowd control on I can compare the change on?

nascent作者
§
发表于:2021-10-01

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"

发表回复

登录以发表回复。