User:AmiDaniel/monobook.js

/* */

/*** User:Lightdarkness's include function ***/ function inc (file) { mw.loader.load('/w/index.php?title='+file+'&action=raw&ctype=text/javascript&dontcountme=s'); }

inc("User:Voyagerfan5761/rollbacksummary.js");

//inc("User:Lupin/popups.js"); //inc("User:AmiDaniel/junk.js");

inc("User:AmiDaniel/vpfunctions.js"); inc("User:AmiDaniel/VoAcopy.js");

addOnloadHook(morelinks);

function morelinks { var tabs = document.getElementById('p-cactions').getElementsByTagName('ul')[0]; if(document.title.indexOf("Editing User talk:") == 0) { addlimenu(tabs, 'Talk page messages', 'talkm'); var talkm = document.getElementById('talkm').getElementsByTagName('ul')[0]; // Welcome menu addlimenu(talkm, 'Welcome', 'welcomess'); var welcomess = document.getElementById('welcomess').getElementsByTagName('ul')[0]; addlilink(welcomess,'javascript:edit_summary_watch(" ~", "Welcome to Wikipedia!", true, 1)','Welcome', ''); addlilink(welcomess,'javascript:edit_summary_watch(" ~", "Welcome to Wikipedia!", true, 1)','Anon', ''); // Test menu addlimenu(talkm, 'Test[x]', 'testx'); var testx = document.getElementById('testx').getElementsByTagName('ul')[0]; addlilink(testx,'javascript:testn("nn-test")','Non-notable test', ''); addlilink(testx,'javascript:testn("test0")', 'Test0', ''); addlilink(testx,'javascript:testn("test1")', 'Test1', ''); addlilink(testx,'javascript:testn("test2")','Test2', ''); addlilink(testx,'javascript:testn("test2a")','Test2a', ''); addlilink(testx,'javascript:testn("test3")','Test3', ''); addlilink(testx,'javascript:testn("test4")','Test4', ''); addlilink(testx,'javascript:testn("test4-im")','Only warning', ''); addlilink(testx,'javascript:testn("User:Bookofjude/tpv1")','Talk page vandalism 1', ''); addlilink(testx,'javascript:edit_summary_watc(" ~", "Blanking your talk page", false, 1)', 'Warning blankings 1', ''); // Blatant vandalism addlimenu(talkm, 'Blatant vandalism', 'bv') var bv = document.getElementById('bv').getElementsByTagName('ul')[0]; addlilink(bv,'javascript:testn("vw")','Blatant vandalism 1', ''); addlilink(bv,'javascript:testn("bv")','Blatant vandalism 2', ''); addlilink(bv,'javascript:edit_summary_watch(" ~", "Blanking pages", false, 1)','blanking', ''); // Spam addlimenu(talkm, 'Spam', 'spam'); var spam = document.getElementById('spam').getElementsByTagName('ul')[0]; addlilink(spam,'javascript:edit_summary_watch(" ~", "Adding links to Wikipedia", false, 1)','Spam1', ''); addlilink(spam,'javascript:edit_summary_watch(" ~", "Spamming", false, 1)','Spam2', ''); addlilink(spam,'javascript:edit_summary_watch(" ~", "Last warning for spamming", false, 1)','Spam3', ''); addlilink(spam,'javascript:edit_summary_watch(" ~", "You have been blocked for spamming", false, 1)','Spam4', ''); // Talk page messages addlimenu(talkm, 'Talk messages', 'tkm'); var tkm = document.getElementById('tkm').getElementsByTagName('ul')[0]; addlilink(tkm,'javascript:edit_summary_watch(" ~", "Edit summaries", false, 1)','Edit summary 1', ''); addlilink(tkm,'javascript:edit_summary_watch(" ~", "Messages in articles", false, 1)','Messages 1', ''); addlilink(tkm,'javascript:edit_summary_watch(" ~", "Messages in articles", false, 1)','Messages 2', ''); addlilink(tkm,'javascript:edit_summary_watch(" ~", "Messages in articles", false, 1)','Messages 3', ''); addlilink(tkm,'javascript:edit_summary_watch(" ~", "About the page you created", false, 1)','Vanity', ''); addlilink(tkm,'javascript:edit_summary_watch(" ~", "About your edits", false, 1)','nothanks', ''); addlilink(tkm,'javascript:edit_summary_watch(" ~", "", false, 1)','nothanks-sd', ''); addlilink(tkm,'javascript:rvfd(1)', 'rvfd', ''); // Block messages // addlilink(talkm,'javascript:duration(1)', 'Temp Block', ''); // addlilink(talkm,'javascript:perm_name_block("", "You have been indefinitely blocked", true, 1)','Perm Block', ''); // addlilink(talkm,'javascript:perm_name_block(" ~", "", true, 1)','Name Block', ''); } else if(document.title.indexOf("Wikipedia:Articles for deletion") == 0) { addlilink(tabs, 'javascript:hideafd', 'hide closed', 'ca-hide'); ta['ca-hide'] = ['', 'Hide closed AFDs']; addlilink(tabs, 'javascript:showafd', 'show closed', 'ca-show'); ta['ca-show'] = ['', 'Show closed AFDs']; } else if(document.title.indexOf("User") == 0) {

} }

addOnloadHook(function {   if (location.href.indexOf("Special:") == - 1) document.getElementById('ca-edit').firstChild.innerHTML = "edit"; } );

function addOldids{ var re=/index[.]php[?]title=[^&]*&oldid=(\d+)$/; var len=document.links.length; for (var i=0; i<len; ++i) { var a=document.links[i]; if (re.test(a.href)) { var m=a.href.match(re); a.innerHTML += ' (' + m[1] + ')'; }   } } // for testing from monobook.js:

if (window.location.href.indexOf("&action=history") != -1) { addOnloadHook(addOldids); }

/* */