User:LukeTheSpook/monobook.js

From Simple English Wikipedia, the free encyclopedia

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
importScript('User:Lupin/recent2.js');
// [[User:Zocky/PicturePopups.js]]
document.write('<script type="text/javascript" src="' 
             + 'http://en.wikipedia.org/w/index.php?title=User:Zocky/PicturePopups.js' 
             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
// 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' + '{{subst:User:' + 'MatthewFenton/Welcome}}\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);
}
// [[User:Lupin/popups.js]]
 
importScript('User:Lupin/popups.js');
function hidevfd(){
var divs = document.getElementsByTagName("div");
for(var x = 0; x < divs.length; ++x)
if(divs[x].className.indexOf("vfd") != -1)
divs[x].style.display = "none";
document.getElementById('footer').style.display = 'none';
}
 
function showvfd(){
var divs = document.getElementsByTagName("div");
for(var x = 0; x < divs.length; ++x)
if(divs[x].className.indexOf("vfd") != -1)
divs[x].style.display = "";
document.getElementById('footer').style.display = '';
}
 
function addlilink(tabs, url, name){
var na = document.createElement('a');
na.href = url;
na.appendChild(document.createTextNode(name));
var li = document.createElement('li');
li.appendChild(na);
tabs.appendChild(li);
return li;
}
 
function vfdlinks(){
var tabs = document.getElementById('p-cactions').getElementsByTagName('ul')[0];
if(document.title.indexOf("Wikipedia:Articles for deletion") == 0){
addlilink(tabs, 'javascript:hidevfd()', 'Hide');
addlilink(tabs, 'javascript:showvfd()', 'Show');
}
}
 
if (window.addEventListener) window.addEventListener("load",vfdlinks,false);
else if (window.attachEvent) window.attachEvent("onload",vfdlinks);
importScript('Wikipedia:WikiProject User scripts/Scripts/CloseAFD.js');
 
importScript('User:Ultraexactzz/afdsort.js');
importScript('User:Ultraexactzz/afdsort2.js');
/**** afd helper ****/
importScript('User:Jnothman/afd_helper/script.js');
 
/* This is to keep track of who is using this extension: [[User:Jnothman/afd_helper/script.js]] */