Jump to content

User:Infinity0/monobook.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Infinity0 (talk | contribs) at 20:23, 2 March 2006 (add clock). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
// Popups by User:Lupin

var npjs = document.createElement("script");
npjs.type = "text/javascript";
npjs.src = "http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js&action=raw&ctype=text/javascript&dontcountme=s";
document.getElementsByTagName("head").item(0).appendChild(npjs);

// Auto-reload watchlist by ME! :D

var minutes = 8;
var showclock = true;
var timebottom = "0px";
var timeright = "0px";

if (document.location.href=="http://en.wikipedia.org/wiki/Special:Watchlist") {
  setTimeout("document.location.reload()",minutes*60*1000);
  if (showclock) {
    var clock = document.createElement("div");
    clock.style.position = "fixed";
    clock.style.bottom = timebottom;
    clock.style.right = timeright;
    var clocktime=new Date; clocktime_s = clocktime.toUTCString();
    clock.appendChild(document.createTextNode(clocktime_s));
    document.getElementsByTagName("body").item(0).appendChild(clock);
  }
}