Advertisement
rccharles

auto reload profile page

Mar 10th, 2017
555
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  
  3.    This will reload your profile page.  This is the page you get when you signin to ASC from
  4.    a blank page.  
  5.    
  6.    You need to change rccharles on the @include line to you ASC id.
  7.    
  8.  */
  9.  
  10.  
  11. // ==UserScript==
  12. // @name            Auto Reload ASC Profile Page
  13. // @namespace     http://blog.monstuff.com/archives/cat_greasemonkey.html
  14. // @description Reload ASC Welcome Page every 15 minutes.  Logout will occure after 30
  15. //              minues of inactivity.
  16. // @include       https://discussions.apple.com/people/rccharles?view=discussions
  17. // @version     1.0
  18. // @grant       none
  19. // ==/UserScript==
  20.  
  21. // based on code by Julien Couvreur
  22. // and included in book with his gracious permission
  23. //
  24. // from Greasemonkey hacks: tips & Tools for Remixing the web with Firefox
  25.  
  26. var aDate = new Date();
  27. console.log ("--> Auto reload ASC profile page on " + aDate);
  28.  
  29. var numMinutes = 15;
  30. window.setTimeout("document.location.reload();", numMinutes*60*1000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement