Skip to content

Instantly share code, notes, and snippets.

View PitchforkAssistant's full-sized avatar
🦥

PitchforkAssistant PitchforkAssistant

🦥
View GitHub Profile
// ==UserScript==
// @name (filter) remover
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Remove the (filter) text from /r/all
// @author /u/PitchforkAssistant
// @match https://*.reddit.com/r/all*
// @grant none
// ==/UserScript==
// ==UserScript==
// @name Simple Content Filters
// @description Buttons to hide all but certain types of stuff in your modqueue.
// @author /u/PitchforkAssistant
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js
// @match https://www.reddit.com/r/*/about/modqueue*
// @match https://www.reddit.com/r/*/about/unmoderated*
// @grant GM_addStyle
// ==/UserScript==
// ==UserScript==
// @name Show Registration Time
// @description Shows registration times on legacy profiles next to the "registered x ago" text, that way there is no need to waste time hovering over it.
// @author /u/PitchforkAssistant
// @match https://www.reddit.com/user/*
// @match https://old.reddit.com/user/*
// @grant none
// ==/UserScript==
$().ready(function() {
// ==UserScript==
// @name Show Registration Time in New Modmail
// @description Shows registration time on the info bar under "redditor for x"
// @author /u/PitchforkAssistant
// @match https://mod.reddit.com/mail/*
// @grant none
// ==/UserScript==
var debounce = false;
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(".bookmarklet-container").length) {
var user = $(this).text();
if (authors[user] == null) {
authors[user] = [];
javascript: (function() {
/* Get all unique users and their karma */
var users = [];
var ages = {};
var delay_exec = false;
$("#siteTable .author, .commentarea .author").each(function() {
var user = $(this).text();
if (users.indexOf(user) == -1 && user != "[deleted]") {
users.push(user);
@PitchforkAssistant
PitchforkAssistant / googlereverseimagesearch.js
Created October 21, 2019 08:46
Not by me, I changed it to open a new tab instead of navigating the current window to the reverse image search.
javascript: (function() {
q = 'site:reddit.com';
loc = document.location;
baseurl = 'https://www.google.com/searchbyimage?hl=en&safe=off&site=search&image_url=';
if (loc.hostname == 'imgur.com' && imgur && imgur._ && imgur._.hash && imgur._.hash.length == 7) {
url = 'https://i.imgur.com/' + imgur._.hash + 'h.jpg';
} else if (loc.href.match('/comments/') && loc.href.match('reddit.com')) {
url = document.getElementsByClassName('linklisting')[0].getElementsByClassName('title')[0].getElementsByClassName('title')[0].getAttribute('href');
url = url.replace('.gifv', 'h.jpg');
} else if (loc.href.match(/(\.jpg|\.gif|\.png|imgur)\??[^.]*?$/)) {
javascript: (function() {
$(".commentarea>.infobar").remove();
$(".tb-frontend-container").remove();
$(".username-highlighter-userscript").remove();
$(".username-highlighter-userscript").remove();
$("a.voteWeight").remove();
$(".imageInfo").remove();
$(".masstagger").remove();
$(".imageInfoExpando").remove();
$(".RESUserTag").remove();
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) {
@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] = [];