User:Yikrazuul/monobook.js

// function tnaddlilink(url, name) { var na = document.createElement('a'); na.setAttribute('href', url); var txt = document.createTextNode(name); na.appendChild(txt); var li = document.createElement('li'); li.appendChild(na); return li; } function edits(number) { var page = prompt("Edits to which article?") var f = document.editform, t = f.wpTextbox1; if (t.value.length > 0) t.value += '\n'; t.value += "\n" + page + " ~" + "~" + "~" + "~"; f.wpSummary.value = "Edits to " + page + " - first warning " ; f.submit; } function vandalism(number) { var page = prompt("Vandalism to which article?") var f = document.editform, t = f.wpTextbox1; if (t.value.length > 0) t.value += '\n'; t.value += "\n" + page + " ~" + "~" + "~" + "~"; f.wpSummary.value = "Vandalism to " + page + " - "; f.submit; } function attack(number) { var page = prompt("Attack at which article?") var f = document.editform, t = f.wpTextbox1; if (t.value.length > 0) t.value += '\n'; t.value += "\n" + page + " ~" + "~" + "~" + "~"; f.wpSummary.value = "Attack page creation"; f.submit; } function tempblocked(number) { var f = document.editform, t = f.wpTextbox1; if (t.value.length > 0) t.value += '\n'; t.value += "\n" ; f.wpSummary.value = "Blocked from editing: " ; f.submit; } function indefblocked(number) { var f = document.editform, t = f.wpTextbox1; if (t.value.length > 0) t.value += '\n'; t.value += "\n" ; f.wpSummary.value = "Blocked from editing: " ; f.submit; } function username(number) { var f = document.editform, t = f.wpTextbox1; if (t.value.length > 0) t.value += '\n'; t.value += "\n" ; f.wpSummary.value = "Username block" ; f.submit; } function usernames(number) { var f = document.editform, t = f.wpTextbox1; if (t.value.length > 0) t.value += '\n'; t.value += "\n" ; f.wpSummary.value = "Username block" ; f.submit; } function add_testn_tabs { var c1 = document.getElementById('column-one'); var tabs = c1.getElementsByTagName('div')[0].getElementsByTagName('ul')[0]; // Only add for pages with "Editing User"/"Creating User" somewhere in the title if (document.title.indexOf("ting User") != -1) {     tabs.appendChild(tnaddlilink('javascript:edits("vandalism1")',"v1")); tabs.appendChild(tnaddlilink('javascript:vandalism("vandalism2")',"v2")); tabs.appendChild(tnaddlilink('javascript:vandalism("vandalism3")',"v3")); tabs.appendChild(tnaddlilink('javascript:vandalism("vandalism4")',"v4")); tabs.appendChild(tnaddlilink('javascript:tempblocked("tempblocked1")',"blk")); tabs.appendChild(tnaddlilink('javascript:indefblocked("indefblocked1")',"ndf")); tabs.appendChild(tnaddlilink('javascript:username("usernameblock")',"unb")); tabs.appendChild(tnaddlilink('javascript:usernames("usernameblock")',"unbs")); tabs.appendChild(tnaddlilink('javascript:edits("delete1")',"d1")); tabs.appendChild(tnaddlilink('javascript:vandalism("delete2")',"d2")); tabs.appendChild(tnaddlilink('javascript:vandalism("delete3")',"d3")); tabs.appendChild(tnaddlilink('javascript:edits("spam1")',"s1")); tabs.appendChild(tnaddlilink('javascript:vandalism("spam2")',"s2")); tabs.appendChild(tnaddlilink('javascript:vandalism("spam3")',"s3")); tabs.appendChild(tnaddlilink('javascript:attack("attack1")',"a")); }} $(add_testn_tabs); // // Please leave the following line // user:Where/usertabs $(function { if (wgTitle.indexOf("/") != -1 || document.title.indexOf("- History -") != -1)  //no subpages or history     return;  if (wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk") {     var username = encodeURIComponent( wgTitle );     mw.util.addPortletLink("p-cactions", wgServer + "/wiki/Special:Contributions/" + username, "Cntr", "ca-contrib", "User contributions");     mw.util.addPortletLink("p-cactions", "http://en.wikipedia.org/wiki/Special:Blockip/" + username, "Blk", "ca-block", "Block this user");     mw.util.addPortletLink("p-cactions", wgServer + "/w/index.php?title=Special:Log&type=block&page=User:" + username, "Blks", "ca-blog", "Block log");     mw.util.addPortletLink("p-cactions", "http://tools.wikimedia.de/~interiot/cgi-bin/count_edits?dbname=enwiki_p&user=" + username, "Edits", "ca-editcount", "Edit count from Interiot's toolserver script");  } }); // // User:Lupin/popups.js importScript('User:Lupin/popups.js'); popupStructure='original'; popupFixRedirs=true; popupFixDabs=true; popupAdminLinks=true; popupDelay=.5; popupHideDelay=.01; popupWatchRedirredPages=false; popupRedirAutoClick='wpSave' // DOI bot importScript('User:Smith609/toolbox.js'); //Adds 'Check Refs' to the toolbox, links to http://toolserver.org/~dispenser/cgi-bin/reflinks.py -- Dispenser's reference title fixer. function refcheck {  mw.util.addPortletLink("p-tb", "http://toolserver.org/~dispenser/cgi-bin/reflinks.py?citeweb=on&page=" + wgPageName, "Check Refs"); } if ( wgNamespaceNumber == 0 ) { addOnloadHook(refcheck); } importScript('User:Smith609/reftool.js'); importScript('User:Mr.Z-man/closeAFD.js'); importScript('User:John254/mass rollback.js') //