Advertisement
Guest User

KotakAU Auto-refresh disabler

a guest
Aug 6th, 2015
222
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. (function() {
  18. var si = window.setInterval;
  19. window.setInterval = function(f, i) {
  20. if (i !== 1e3) {
  21. return si(f,i);
  22. }
  23. return false;
  24. }
  25. })();
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement