User:Nug/monobook.js
function chooseBox( id, arr ) {
return arr.indexOf( id ) == -1 ? 'p-cactions' : 'p-tb';
}
importScript('User:AzaToth/twinkle.js');
TwinkleConfig = {
toolboxButtons: ["tw-prod", "tw-csd", "tw-csd-reason", "tw-rpp", "tw-since", "tw-sincemine","tw-lastdiff"],
userTalkPageMode : 'blank',
summaryAd: ''
};
importScript('User:Sander Säde/pagesCreated.js');
importScript('User:Sander Säde/quickpreview.js');
importScript('User:Gerbrant/edit/linksInDiff.js');
importScript('User:Omegatron/monobook.js/addlink.js'); //User:Omegatron/monobook.js/addlink.js
importScript('User:Dr_pda/prosesize.js'); //User:Dr_pda/prosesize.js
//testing editcounter
$(doQuickCount);
function doQuickCount() {
if (mw.config.get('wgPageName') == "Special:Contributions") {
var name = document.getElementById("contentSub").getElementsByTagName("a");
var rname = name[0].innerHTML;
if (rname == "Talk") rname = document.getElementById("contentSub").innerHTML.split(" ")[1]; //IP's
var cnteraj = sajax_init_object(null);
cnteraj.open("GET", 'http://en.wikipedia.org/w/query.php?what=contribcounter&'+
'titles=User:'+rname+'&format=xml', true);
cnteraj.onreadystatechange = function()
{
if(cnteraj.readyState != 4) return;
document.getElementById("contentSub").innerHTML = 'Edit count for ' +
rname.fontcolor("Green").bold() + ": " + cnteraj.responseText.split("
"
+ document.getElementById("contentSub").innerHTML;
};
cnteraj.send(null);
}
}
$(estRelated);
function estRelated() {
if (document.URL.indexOf('Special:Watchlist') == -1) return;
estaj=sajax_init_object(null);
estaj.open("GET",
"http://en.wikipedia.org/w/index.php?title=Special:Recentchangeslinked&target=User:Sander_S%C3%A4de/WPEarticles&hideminor=0&days=7&limit=100",
true);
estaj.onreadystatechange = function()
{
if(estaj.readyState != 4) return;
sPage = estaj.responseText;
document.getElementById("contentSub").innerHTML += "
" + sPage.substring(sPage.indexOf("