Skip to content

Instantly share code, notes, and snippets.

@hyper-neutrino
Created October 25, 2020 08:46
Show Gist options
  • Save hyper-neutrino/bb64d147d77b121f1d03671fa5e42d47 to your computer and use it in GitHub Desktop.
Save hyper-neutrino/bb64d147d77b121f1d03671fa5e42d47 to your computer and use it in GitHub Desktop.
Userscript: automatically unhide DMOJ comments
// ==UserScript==
// @name Automatically unhide DMOJ comments
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Automatically unhide all comments with negative feedback and disable the fade mask on them
// @author HyperNeutrino
// @match https://dmoj.ca/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
for (var x of $("#comments>ul>li")) comment_show_content(parseInt(x.id.substring(8)));
for (var x of $(".bad-comment")) x.classList.remove("bad-comment");
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment