Skip to content

Instantly share code, notes, and snippets.

View PitchforkAssistant's full-sized avatar
🦥

PitchforkAssistant PitchforkAssistant

🦥
View GitHub Profile
@PitchforkAssistant
PitchforkAssistant / disableAllModNotifications.js
Last active April 1, 2025 15:28
Running this script in the browser console of an open Reddit page will disable moderation notifications for all subreddits you moderate.
async function getModeratedSubreddits(after) {
const targetUrl = "https://www.reddit.com/subreddits/mine/moderator.json";
const params = {
count: 100,
after: after || ""
};
const request = await fetch(targetUrl + "?" + new URLSearchParams(params), {
method: "GET",
headers: {
"Accept": "application/json",
import {Devvit} from "@devvit/public-api";
import {Icons as ImportedIcons} from "../../icons.js";
const Icons = ImportedIcons as Record<string, string>;
// Your Font has to be added as individual characters at assets/fontname/decimalcodepoint.svg
// I used the below command to export my test font as individual character SVGs using fontforge
// fontforge -lang=ff -c 'Open($1); SelectWorthOutputting(); foreach Export($2); endloop;' test.ttf '%e.svg'
// Before uploading the app, create the icons using the command below
@PitchforkAssistant
PitchforkAssistant / rplaceforoldreddit.user.js
Last active April 1, 2022 16:41
If you already have the Tampermonkey or Greasemonkey extension, click on Raw and it should prompt you to install this.
// ==UserScript==
// @name Place for Old Reddit
// @version 0.1
// @source https://gist.github.com/PitchforkAssistant/3a100a38c6f1bf3326386ab00b8ebaaf
// @description Adds the 2022 /r/Place April Fool's joke to old reddit
// @author /u/PitchforkAssistant
// @match https://www.reddit.com/r/place/*
// @match https://old.reddit.com/r/place/*
// ==/UserScript==
@PitchforkAssistant
PitchforkAssistant / oldredditsecond.user.js
Last active April 2, 2021 08:47
Tested using Tampermonkey on Chrome 91, should also work with everything else though. If you already have those, just hit "Raw" to install.
// ==UserScript==
// @name Second for Old Reddit
// @version 0.1
// @source https://gist.github.com/PitchforkAssistant/76410194cd372f2b8ca34f6787a47b20
// @description Adds the 2021 /r/Second April Fool's joke to old reddit
// @author /u/PitchforkAssistant
// @match https://www.reddit.com/r/Second/*
// @match https://old.reddit.com/r/Second/*
// ==/UserScript==
@PitchforkAssistant
PitchforkAssistant / RESImageSizeLabel.user.js
Created September 6, 2020 12:02
Adds image size label when its expando is opened. Requires RES, supports NER.
// ==UserScript==
// @name RES Image Size Label
// @namespace http://tampermonkey.net/
// @version 1.1
// @description Adds image size label when its expando is opened. Requires RES, supports NER.
// @author /u/PitchforkAssistant
// @match https://www.reddit.com/*
// @match https://old.reddit.com/*
// ==/UserScript==
// ==UserScript==
// @name Imposter for Old Reddit
// @version 0.3
// @source https://gist.github.com/PitchforkAssistant/8425b78645effa55ac3ce2b9ecb820f6
// @description Adds the Imposter April Fool's joke to old reddit
// @author /u/PitchforkAssistant
// @match https://www.reddit.com/r/Imposter/*
// @match https://old.reddit.com/r/Imposter/*
// ==/UserScript==
// ==UserScript==
// @name Todoist Gmail Tweaker
// @version 0.1
// @description Moves the Todoist Gmail extension over the the guest-app bar. REQUIRES THE TODOIST GMAIL EXTENSION!!!
// @author PitchforkAssistant
// @match https://mail.google.com/*
// @match https://gmail.todoist.com/app?mini=1
// @grant none
// ==/UserScript==
@PitchforkAssistant
PitchforkAssistant / quicknebuladarktheme.css
Last active November 27, 2019 21:21
Just a quick theme for watchnebula.com, apply it to watchnebula.com with stylus: https://add0n.com/stylus.html
body,
#NebulaApp .Account {
background-color: #1F1F1F;
color: #aaa;
}
#NebulaApp .header {
color: #fff;
}
@PitchforkAssistant
PitchforkAssistant / zombiedetector.bookmarklet.js
Created November 12, 2019 19:53
It shows a symbol and popup for accounts that are older than 30 days, but they have less than 1 page of history with the oldest item being less than 3 days old.
javascript: (function() {
var users = new Set();
var authors = {};
/* Stores all the authors that need labels and all the unique users so each user is only requested once. */
$(".author").each(function() {
if (!$(this).parent().find(".zombie-tag").length) {
var user = $(this).text();
if (authors[user] == null) {
authors[user] = [];
javascript: (function() {
$("#siteTable>.thing.comment").each(function() {
var thing = $(this);
var comment_link = thing.find("[data-event-action=full_comments]")[0];
$.getJSON(comment_link + "/.json?limit=1", function(response) {
var removed_by = response[0]["data"]["children"][0]["data"]["banned_by"];
var selftext = response[0]["data"]["children"][0]["data"]["selftext"];
var author = response[0]["data"]["children"][0]["data"]["author"];
var parent_thing = thing.find("p.parent");
if (removed_by !== null) {