Advertisement
Guest User

KotakAU Auto-refresh disabler

a guest
Aug 6th, 2015
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. // ==UserScript==
  2. // @name KotakAU Auto-refresh disable
  3. // @namespace http://your.homepage/
  4. // @version 0.1
  5. // @description Discards the timer used to refresh pages on KotakAU after 5 minutes of inactivity
  6. // @author os42
  7. // @match http://www.kotaku.com.au/20*
  8. // @match https://www.kotaku.com.au/20*
  9. // @match http://www.gizmodo.com.au/20*
  10. // @match https://www.gizmodo.com.au/20*
  11. // @match http://www.lifehacker.com.au/20*
  12. // @match https://www.lifehacker.com.au/20*
  13. // @grant none
  14. // @run-at document-start
  15. // ==/UserScript==
  16.  
  17. var si = window.setInterval;
  18. window.setInterval = function(f, i) {
  19. if (i !== 1e3) {
  20. return si(f,i);
  21. }
  22. return false;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement