Reddit Comment Expander

Expands reddit comments by default to mitigate the Crowd Control feature

< Valutazione su Reddit Comment Expander

Recensione: Bene - lo script funziona

§
Pubblicato: 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)");

nascentAutore
§
Pubblicato: 01/10/2021

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

nascentAutore
§
Pubblicato: 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"

Pubblica risposta

Accedi per pubblicare una risposta.