Greasy Fork is available in English.

Reddit Comment Expander

Expands reddit comments by default to mitigate the Crowd Control feature

  1. // ==UserScript==
  2. // @name Reddit Comment Expander
  3. // @version 1.1
  4. // @description Expands reddit comments by default to mitigate the Crowd Control feature
  5. // @author /u/Tural-
  6. // @match https://*.reddit.com/*
  7. // @grant none
  8. // @namespace https://greasyfork.org/users/280996
  9. // ==/UserScript==
  10. (function() {
  11. 'use strict';
  12. // Get all the comments that are not 'collapsed for a reason'
  13. // "collapsed-for-reason" class is used by reddit to define comments that were collapsed because they are below the viewer's score threshold and we don't want to supersede that functionality
  14. // We only want to expand comments that were collapsed by moderators as part of the feature explained here: https://old.reddit.com/r/redditsecurity/comments/b0a8he/detecting_and_mitigating_content_manipulation_on/
  15. let comments = document.querySelectorAll(".thing.collapsed:not(.collapsed-for-reason)");
  16. // Loop through the comment array
  17. comments.forEach(function (el, i) {
  18. el.classList.remove("collapsed");
  19. el.classList.add("noncollapsed");
  20. });
  21. })();