Reddit mod that removes the entire front page?

First itteration of the script. Just a simple redirect if you visit r/all, r/popular or the homepage to your saved posts.

  1. Install Tampermonkey plugin for your browser
  2. Click on the Tampermonkey icon and click on dashboard
  3. Click on the '[+]' icon
  4. Remove all of the text that's in the editor.
  5. Paste the following code in the editor

    // ==UserScript== // @name Reddit Redirect // @namespace http://tampermonkey.net/ // @version 0.1 // @description Redirect reddit.com to saved post. // @author You // @match https://helpdesk.ctg.com/?categoryId=-1&mode=Unassigned // @grant none // @require https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js // @include https://www.reddit.com/* // ==/UserScript==

    function redirectURL(){ //Redirect to Saved Posts clearInterval(myinterval); window.location.replace("https://www.reddit.com/user/me/saved"); }

    var myinterval = setInterval(function() { //check if URL contants r/all if(window.location.href.indexOf("reddit.com/r/all") > -1) { console.log('redirect from all') $('div.rpBJOHq2PR60pnwJlUyP0').hide(); redirectURL(); } //check if URL contains r/popular if(window.location.href.indexOf("reddit.com/r/popular") > -1) { console.log('redirect from popular') redirectURL(); } //check if URL is homepage if(window.location.href == 'https://www.reddit.com/'){ console.log('redirect from homepage'); redirectURL(); } }, 100);

  6. In the editor, go to File > Save

  7. Reload or open reddit

/r/nosurf Thread Parent