Skip to content

Instantly share code, notes, and snippets.

View PitchforkAssistant's full-sized avatar
🦥

PitchforkAssistant PitchforkAssistant

🦥
View GitHub Profile
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();
@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() {
/* 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);
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] = [];
// ==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;
// ==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 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 (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==