Greasy Fork is available in English.
Expands reddit comments by default to mitigate the Crowd Control feature
< Părere la script-ul 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)");