User:Curiouscrab/global.js

military=false; UTC=false; timezone='EDT'; importScriptPage('Mediawiki:Common.js/displayClockLocal.js', 'admintools'); // make pages open in new tab for(i=0;i<document.getElementById('mw-content-text').getElementsByTagName('a').length;i++) { document.getElementById('mw-content-text').getElementsByTagName('a')[i].target='_blank'; } // reload page automatically after time if(wgAction=='view' && wgNamespaceNumber!==-1) { setInterval(function { if(window.location.search=='') { window.location.href=window.location.href + '?action=purge'; } else { window.location.href=window.location.href + '&action=purge'; } }, 60000); }