User:DeluxNate/monobook.js

// importScript('User:VoA/monobook.js'); importScript('User:TheDJ/qui.js');

importScript('User:AzaToth/twinkle.js'); // // // Edit tools for the vandal whack-a-mole game // User:Kbh3rd/whackamole.js - please include this line // document.write(' ');

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 blocked(number) { var f = document.editform, t = f.wpTextbox1; if (t.value.length > 0) t.value += '\n'; t.value += "\n ~" + "~" + "~" + "~"; f.wpSummary.value = "Blocked - " ; 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" somewhere in the title if (document.title.indexOf("Editing 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:blocked("block1")',"b1")); tabs.appendChild(tnaddlilink('javascript:blocked("block2")',"b2")); tabs.appendChild(tnaddlilink('javascript:blocked("block3")',"b3")); 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", wgServer + "/w/index.php?title=Special:Log&type=move&user=" + username, "Mvs", "ca-pagemoves", "Page moves by 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"); mw.util.addPortletLink("p-cactions", "http://en.wikipedia.org/wiki/Special:Blockip/" + username, "Blk", "ca-block", "Block this user"); } }); //

popupStructure='original'; popupFixRedirs=true; popupFixDabs=true; popupAdminLinks=true; popupDelay=.01; popupHideDelay=.01; popupWatchRedirredPages=false; popupRedirAutoClick='wpSave' /* */ if ((document.title.indexOf("Confirm deletion") != -1) || (document.title.indexOf("Confirm delete") != -1)) { var csdDeleteForm = { FillSelect:function(sel, arr){ if(arr && arr.length>0){ if(arr.length>1){ var FirstOpt = new Option("CSD Reasons", ""); // catches stupid IE error if(FirstOpt.innerHTML != "CSD Reasons"){ FirstOpt.innerHTML = "CSD Reasons"; }							sel.appendChild(FirstOpt); sel.options[0].style.color = "gray" }						sel.disabled = false; for(var i=0;i<arr.length;i++){ var opt = new Option(arr[i].display, arr[i].value); // catches stupid IE error if(opt.innerHTML != arr[i].display){ opt.innerHTML = arr[i].display; }							sel.appendChild(opt); }					}else{ sel.options[0] = new Option("No Options Available", ""); // catches stupid IE error if(sel.options[0].innerHTML != "No Options Available"){ sel.options[0].innerHTML = "No Options Available"; }						sel.disabled = true; return false; }					return true; },                               ValueArray:[ {"value":"CSD G1: Patent Nonsense","display":"G1 - Nonsense"}, {"value":"CSD G2: Test Pages","display":"G2 - Test Pages"}, {"value":"CSD G3: Pure Vandalism","display":"G3 - Pure Vandalism"}, {"value":"CSD G4: Recreation of deleted material","display":"G4 - Recreated Deleted"}, {"value":"CSD G5: Contributions by Banned User","display":"G5 - Banned User"}, {"value":"CSD G6: Housekeeping","display":"G6 - Housekeeping"}, {"value":"CSD G7: Author Requests Deletion","display":"G7 - Author Request"}, {"value":"CSD G8: Talkpage of non-Existent Article","display":"G8 - Talk Page"}, {"value":"CSD G9: Office Actions","display":"G9 - Office Actions"}, {"value":"CSD G10: Attack Page","display":"G10 - Attack Pages"}, {"value":"CSD G11: Blatant Advertising","display":"G11 - Advertising"}, {"value":"CSD G12: Blatant Copyright infringement","display":"G12 - Copyright"}, {"value":"CSD A1: Very short article providing little or no context","display":"A1 - No Context"}, {"value":"CSD A2: Foreign language article that exists on another Wikipedia","display":"A2 - Foreign Language"}, {"value":"CSD A3: No content","display":"A3 - No Content"}, {"value":"CSD A5: Has been transwikied","display":"A5 - Transwikied"}, {"value":"CSD A7(Bio): Biographical article that does not assert significance","display":"A7 - Unremarkable Bio"}, {"value":"CSD A7(Group): Article about a club or group that does not assert significance","display":"A7 - Unremarkable Group"}, {"value":"CSD A7(Band): Article about a band that does not assert significance","display":"A7 - Unremarkable Band"}, {"value":"CSD A7(Corp): Article about a company that doesn't assert significance","display":"A7 - Unremarkable Firm"}, {"value":"CSD A7(Web): Article about a web site that does not assert significance","display":"A7 - Unremarkable Web"}, {"value":"CSD A7: Article about subject that does not assert significance.","display":"A7 - Other"}, {"value":"CSD R1: Redirect to non-existent page","display":"R1 - Bad Target"}, {"value":"CSD R2: Redirect to User/User talk namespaces from mainspace","display":"R2 - Crossnamespace"}, {"value":"CSD R3: Implausible typo","display":"R3 - Bad Typo"}, {"value":"CSD I1: Redundant to another image","display":"I1 - Redundant"}, {"value":"CSD I2: Image is corrupted","display":"I2 - Corrupt/Empty"}, {"value":"CSD I3: Improper license","display":"I3 - Improper License"}, {"value":"CSD I4: No license or No Source Information","display":"I4 - Lack of License"}, {"value":"CSD I5: Is unused and not free","display":"I5 - Unused Unfree"}, {"value":"CSD I6: No justification given for fair use","display":"I6 - No Fair Use"}, {"value":"CSD I7: Bad justification given for fair use","display":"I7 - Invalid Fair Use"}, {"value":"CSD I8: Image exists on the Commons","display":"I8 - On Commons"}, {"value":"CSD C1: Category is Empty (and has been for 4 days or more)","display":"C1 - Empty"}, {"value":"CSD C2: Speedy Renaming","display":"C2 - Speedy Rename"}, {"value":"CSD C3: Corresponding template was deleted","display":"C3 - Template"}, {"value":"CSD U1: User requested deletion","display":"U1 - User Request"}, {"value":"CSD U2: Userpage of non-existent user","display":"U2 - No User"}, {"value":"CSD U3: Userpage that is primarily a gallery of fair use images","display":"U3 - Fair Use Gallery"}, {"value":"CSD T1: Template that is divisive and inflammatory.","display":"T1 - Divisive"}, {"value":"CSD P2: Underpopulated","display":"P2 - Underpopulated"}, {"value":"AFD: Deleted after discussion at Articles for Deletion","display":"AFD close"}, {"value":"Closing prod","display":"Prod close"} ],				//**************************** attaching function ***************************************** // got thIS super handi function from http://www.scottandrew.com he is pretty dang smart ** //*****************************************************************************************				addEvent:function(obj, evType, fn, useCapture){ //alert(obj); if (obj.addEventListener){ obj.addEventListener(evType, fn, useCapture); return true; } else if (obj.attachEvent){ var r = obj.attachEvent("on"+evType, fn); return r;					} else { alert("Handler could not be attached"); }				}			}			function addSelectAfter{ var obj = document.getElementById('wpReason'); // create select using included array var sel = document.createElement("SELECT"); csdDeleteForm .FillSelect(sel, csdDeleteForm .ValueArray); // name it				sel.name = "csdOptions"; sel.id = "csdOptions"; sel.style.marginLeft = "10px"; csdDeleteForm .addEvent(sel, "change", csdChangeBox, false); // check for next sibling and insert before it or at the end if(obj.nextSibling){ obj.parentNode.insertBefore(sel,obj.nextSibling); }else{ obj.parentNode.appendChild(sel); }			}			try{ // add one on load csdDeleteForm.addEvent(window, "load", addSelectAfter, false); }catch(err){} } function csdChangeBox { var obj = document.getElementById('wpReason'); obj.value = document.getElementById('csdOptions').value; } /* */ importScript('User:Smith609/toolbox.js');

// Add below this line new scripts // User:Lupin/popups.js mw.loader.load(            'https://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'             + '&action=raw&ctype=text/javascript&dontcountme=s'); // CSD AutoReason document.write(' '); //Interiot's javascript edit counter if (document.title.indexOf('User:Interiot/Tool2/code.js') != -1) { mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Interiot/Tool2/code.js&action=raw&ctype=text/javascript'); } importScript('User:TheDJ/Gadget-HotCat.js'); importScript('User:TheDJ/qui.js'); //