AyrA

Reddit Auto Reloader

Apr 1st, 2016
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Reddit auto reloader
  3. // @namespace    http://ayra.ch/
  4. // @version      1.0
  5. // @description  reloads reddit automatically after 10 seconds, if an error occurs
  6. // @author       /u/AyrA_ch
  7. // @match        https://*.reddit.com/*
  8. // @match        http://*.reddit.com/*
  9. // @match        https://*.reddit.com/
  10. // @match        http://*.reddit.com/
  11. // @match        https://reddit.com/*
  12. // @match        http://reddit.com/*
  13. // @match        https://reddit.com/
  14. // @match        http://reddit.com/
  15. // @grant        none
  16. // ==/UserScript==
  17.  
  18. if(document.title=="Ow! -- reddit.com")
  19. {
  20.     window.setTimeout(location.reload.bind(location),10000);
  21.     document.querySelector("h3").textContent="Reloading in 10 Seconds...";
  22. }
Add Comment
Please, Sign In to add comment