Reddit Comment Expander

Expands reddit comments by default to mitigate the Crowd Control feature

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği yüklemek için Tampermonkey gibi bir uzantı yüklemeniz gerekir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

Bu stili yüklemek için Stylus gibi bir uzantı yüklemeniz gerekir.

Bu stili yüklemek için Stylus gibi bir uzantı kurmanız gerekir.

Bu stili yükleyebilmek için Stylus gibi bir uzantı yüklemeniz gerekir.

Bu stili yüklemek için bir kullanıcı stili yöneticisi uzantısı yüklemeniz gerekir.

Bu stili yüklemek için bir kullanıcı stili yöneticisi uzantısı kurmanız gerekir.

Bu stili yükleyebilmek için bir kullanıcı stili yöneticisi uzantısı yüklemeniz gerekir.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         Reddit Comment Expander
// @version      1.1
// @description  Expands reddit comments by default to mitigate the Crowd Control feature
// @author       /u/Tural-
// @match        https://*.reddit.com/*
// @grant        none
// @namespace https://greasyfork.org/users/280996
// ==/UserScript==
 
(function() {
    'use strict';
 
    // Get all the comments that are not 'collapsed for a reason'
    // "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
    // 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/
    let comments = document.querySelectorAll(".thing.collapsed:not(.collapsed-for-reason)");
 
    // Loop through the comment array
    comments.forEach(function (el, i) {
        el.classList.remove("collapsed");
        el.classList.add("noncollapsed");
    });
 
})();