Skip to content

Instantly share code, notes, and snippets.

@moe93
Created March 30, 2023 05:29
Show Gist options
  • Save moe93/f45d073421916b3575774237333bf8a9 to your computer and use it in GitHub Desktop.
Save moe93/f45d073421916b3575774237333bf8a9 to your computer and use it in GitHub Desktop.
Remove reddit hidden posts in bulk
// A script to remove reddit hidden posts in bulk
//
// _______ INSTRUCTIONS _______
// ____________________________
// Go to old reddit and navigate to "hidden" tab. Make sure that the greasemonkey script is enabled.
//
// AUTHOR : Mohammad Odeh
// DATE : Mar. 30, 2023
//
// ==UserScript==
// @name unHideReddit
// @version 1
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js
// @include *reddit*user*
// @grant unsafeWindow
// ==/UserScript==
window.addEventListener('load', function() {
setInterval ( function () {
var clickEvent = document.createEvent ("HTMLEvents");
clickEvent.initEvent ("click", true, true);
$("a:contains('unhide')")[0].dispatchEvent (clickEvent);
}, 500);
setTimeout(function(){location.reload();},15000);
}, false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment