User:JimDunning/monobook.js

// Script from User:Lupin/popupsdev.js importScript('User:Lupin/popupsdev.js'); //User:Lupin/popupsdev.js

// A small piece of JS writen by User:MatthewFenton, This is my first piece of JS. function welcome { if (document.title.indexOf('Editing User talk:') == 0) { document.editform.wpTextbox1.value = document.editform.wpTextbox1.value + '==' + 'Welcome' + '==\n' + '\n' + ''; document.editform.wpSummary.value = 'Welcome a user to Wikipedia using JS WW'; } } function welcome_tab { add_link('javascript:welcome', 'Welcome'); }

if (document.title.indexOf('Editing User talk:') == 0) { addOnloadHook(welcome_tab); }

// Script from User:MarkS/extraeditbuttons.js mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:MarkS/extraeditbuttons.js'             + '&action=raw&ctype=text/javascript');

$(function {    var tabs = document.getElementById('p-cactions').cloneNode(true);    tabs.id = 'mytabs';    var listitems = tabs.getElementsByTagName('LI');    for (i=0;i<listitems.length;i++) {        if(listitems[i].id) listitems[i].id = 'mytabs-' + listitems[i].id;    }

content = document.getElementById("content");   // Find the content div content.parentNode.insertBefore(tabs, content.nextSibling);   // Place tab list right after content div });

//From http://en.wikipedia.org/w/index.php?title=User:JesseW/monobook.js&oldid=20755510 function addSinceTab { if (window.location.href.indexOf("&action=history&gotosince=true")!=-1) { do_since_I_last_edited }   else if (wgCanonicalNamespace != "Special") { mw.util.addPortletLink("p-cactions", "/w/index.php?title="+wgPageTitle+"&action=history&gotosince=true", 'Changes since I last edited', '', "Changes since I last edited"); } } function do_since_I_last_edited { var csub=document.getElementById("contentSub"); var msg=document.createElement("p"); msg.appendChild(document.createTextNode                       ("Parsing history... please wait...")); msg.className="error"; csub.insertBefore(msg, csub.firstChild)

var username=document.getElementById("pt-userpage").textContent; var hists=document.getElementById("pagehistory").getElementsByTagName('li'); for (n=0;n<hists.length;n++) { if (hists[n].getElementsByTagName("span")[0].getElementsByTagName('a')[0].textContent==username) { document.location=hists[n].childNodes[1].href; return; }       }

msg.replaceChild(document.createTextNode                        ("You have not edited this page! (recently)"),                         msg.firstChild); }

$(addSinceTab);

//

// Script from User:AndyZ/peerreviewer.js mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:AndyZ/peerreviewer.js'             + '&action=raw&ctype=text/javascript');

importScript('User:AzaToth/twinkle.js');

importScript('User:ais523/editcount.js'); //User:ais523/editcount.js