Reddit Comment Expander

Expands reddit comments by default to mitigate the Crowd Control feature

< Feedback on Reddit Comment Expander

Review: Good - script works

§
Posted: 01/10/2021

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

nascentAuthor
§
Posted: 01/10/2021

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

nascentAuthor
§
Posted: 01/10/2021

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"

Post reply

Sign in to post a reply.