User:Adi/monobook.js
From Guild Wars Wiki
< User:Adi
Jump to navigationJump to search
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
/* =========================================================== *\ ** SkillCheck install file. ** ** Copyright (c) Alex Barley <ale_jrb> 2008. ** ** For help with this script, visit ** ** [[User:Ale_jrb/Scripts/SkillCheck]] ** \* =========================================================== */ addScript('User:Ale jrb/Scripts/SkillCheck/skillcheck.js'); /* =========================================================== *\ ** If you are seeing this because you are uninstalling this ** ** script, I'd love to know why. Let me know how it can be ** ** improved at [[User_talk:Ale_jrb]]. ** \* =========================================================== */ /*Auto Refresh*/ var refreshTime = 5; if ((window.location.href).indexOf('selfRef=true') > -1) { var timeout = setTimeout('doRefresh()', refreshTime*1000); window.onfocus = function() { clearTimeout(timeout); } window.onblur = function() { var timeout = setTimeout('doRefresh()', refreshTime*1000); } } else { if ((wgPageName == 'Special:Recentchanges') || (wgPageName == 'Special:Watchlist')) { window.onblur = function() { var timeout = setTimeout('doRefresh()', refreshTime*1000); } } } function doRefresh() { window.location = 'http://wiki.guildwars.com/index.php?title=' + wgPageName + '&selfRef=true'; }