Uncensor Devforum Browser Extension

I wrote a little extension that automatically unhides posts like this:

Code:

// ==UserScript==
// @name         Uncensor devforum
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Uncensors posts on the devforum
// @author       You
// @match        https://devforum.roblox.com/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    setInterval(function() {
        // Automatically unhide flagged posts
        document.querySelectorAll('a.expand-hidden').forEach(function(a) {
            const evt = document.createEvent("MouseEvents");
            evt.initMouseEvent("click", true, true, window, 1, 0, 0, 0, 0, false, false, false, false, 0, null);
            a.dispatchEvent(evt);
        })
        // Remove grey effect
        document.querySelectorAll('div.post-hidden').forEach(function(div) {
            div.classList.remove('post-hidden')
        })
    }, 200)
})();

How to install:

  1. Install TamperMonkey or something similar on your browser
  2. Create a new script
    image
  3. Paste the above code
  4. Hit Ctrl+S to save

Now you should no longer see “flagged by the community” messages.

edit: Updated to remove the “grey” effect as well

7 Likes

There doesn’t seem to be any indication that the post was previously hidden, which would lead me to want to flag it again. The thing is, I don’t really want to see these posts, I just open them to see what was said.

2 Likes

This portion of the code is what removes the “greyed out” effect; you can get rid of it to show the post’s contents but still keep it greyed out.

        document.querySelectorAll('div.post-hidden').forEach(function(div) {
            div.classList.remove('post-hidden')
        })

edit: It seems that the “Flag” feature is disabled for these unhidden posts anyways, so you won’t need to worry about “wanting to flag it again”, as you won’t see the option to.

FYI in the future we want to condense these to be much smaller, just a line that you can unfold.

Also, might be interesting to make an extension that just removes these posts altogether, I think people would be more interested in that (rather than intentionally wanting to read spam).

3 Likes

In my experience (1waffle1 seems to have hinted at this as well), whenever I see 'View ignored content", I immediately want to click it to see what the hidden content is/why it was hidden. It’s like rubbernecking.

Personally, I think this extension saves time. You don’t have to be distracted by the flagging system, and its backwards affect on your attention.

As a personal preference, I hate the elitism/social shaming that the flagging feature encourages. I know those posts are “against the rules”, but I personally detest censorship in most forms it takes, especially when it’s hidden behind a passive aggressive and condescending message like “the community thinks this is inappropriate, so view this content at your own risk. You wouldn’t want to think differently from the community, now would you?”

But that’s just my opinion.

2 Likes

That’s fair – perhaps instead of making it a line we’ll just auto-hide them entirely for anyone other than the poster themselves by default so it’s less distracting. The posts do have a deterring effect though: if a new poster sees that a certain post (of themselves/someone else) gets flagged, they will know not to make such posts after that point.

3 Likes

That sounds like a very good way to make threads with a lot of flags very confusing to read.

1 Like

Please do not completely hide anything, at least not by default.
I like and need to be able to follow conversations even if they’re flagged for being off topic or something. This would be very destructive.

The current plan for flags is to change the notification for it (The “This user has been flagged” thing) from being so huge and tall to just a tiny thing you can open up. Think Discord.

image

1 Like