Created
March 30, 2023 05:29
-
-
Save moe93/f45d073421916b3575774237333bf8a9 to your computer and use it in GitHub Desktop.
Remove reddit hidden posts in bulk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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