User:Dvavasour/monobook.js

addOnloadHook(function {    var toolbar = document.getElementById('toolbar');    if (!toolbar) return;    var links = toolbar.getElementsByTagName('a');    for (var i = 0; i < links.length; i++) {        links[i].href = links[i].href.replace(/--Dunstan 12:11, 24 February 2006 (UTC)/, '—Dunstan 12:11, 24 February 2006 (UTC)');    } });

//

addOnloadHook(function {    var query_prefix = "title=Special:Watchlist&action=submit&remove=1&id[]=";    //var query_prefix = "action=unwatch&title=";

if (window.location.href.indexOf("Special:Watchlist") == -1) return; var links = document.getElementById('content').getElementsByTagName('a'); for (var i = 0; i < links.length; i++) { if (links[i].href.substring(links[i].href.length-15) != '&action=history') continue; var unwatch = document.createElement('a'); unwatch.href = "/w/index.php?" + query_prefix + encodeURIComponent(links[i].title); unwatch.title = "Unwatch "+links[i].title; unwatch.appendChild(document.createTextNode("unwatch")); links[i].parentNode.insertBefore(unwatch, links[i].nextSibling); // kluge to handle case where "diff" is unlinked: var delim = links[i].previousSibling; delim = (delim.nodeType == 3 ? delim.nodeValue : ""); links[i].parentNode.insertBefore(document.createTextNode(delim.replace(/^.*diff/, "")), unwatch); } });

// // Script from User:AndyZ/peerreviewer.js document.write('');