User:Dapete/monobook.js

importScript('User:Dapete/ImageMapEdit.js');

//addOnloadHook( changesigtimezone );

function changesigtimezone { changesigtimezone_recursive(document.getElementById("bodyContent")); }

var timestamp_regexp = /(\d{2}):(\d{2}), (\d{1,2}) (January|February|March|April|May|June|July|August|September|October|November|December) (\d{4}) \(UTC\)/; var months = new Array("January","February","March","April","May","June","July","August","September","October","November","December");

var alerted = false;

function changesigtimezone_recursive(node) { if (alerted) return; var children = node.childNodes; var l = children.length; for (var i = 0; i < l; i++) { switch (children[i].nodeType) { case 1: //ELEMENT_NODE if (children[i].id != "wikiPreview" && children[i].nodeName != "form") { changesigtimezone_recursive(children[i]); }       break; case 3: //TEXT_NODE var text = children[i].nodeValue; var match; while (match = text.match(timestamp_regexp)) { if (!alerted) window.alert(RegExp.$1 + ":" + RegExp.$2 + ", " + RegExp.$3 + " " + RegExp.$4 + " " + RegExp.$5 + " (XXX)"); }       alerted = true; break; } } }