User:Adi/monobook.js

/* =========================================================== *\ ** SkillCheck install file. ** ** Copyright (c) Alex Barley  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'; }