User:General Eisenhower/monobook.js

// User:Lupin/popups.js

importScript('User:Lupin/popups.js');

// install User:Cacycle/wikEd in-browser text editor document.write('');

// This will add an [edit] link at the top of all pages except preview pages and the main page // by User:Pile0nades

// Add an [edit] link to pages addOnloadHook(function { // if this is preview page or generated page, stop if( document.getElementById("wikiPreview") || document.getElementById("histlegend‎") || document.getElementById("difference‎") || document.getElementById("watchdetails") || document.getElementById("ca-viewsource") || window.location.href.indexOf("/wiki/Special:") != -1 ) { if(window.location.href.indexOf("&action=edit&section=0") != -1) { document.getElementById("wpSummary").value = "/* Intro */ "; } return; }; // get the page title var pageTitle = wgPageName; // create div and set innerHTML to link var divContainer = document.createElement("div"); divContainer.innerHTML = ' [edit intro] '; // insert divContainer into the DOM below the h1 if(window.location.href.indexOf("&action=edit") == -1) { document.getElementById("content").insertBefore(divContainer,    document.getElementsByTagName("h1")[0]); } });

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);

function addStrikeoutButton {

editingTools = document.getElementById('toolbar');

if (editingTools != null) {

StrikeTextButton = " "; editingTools.innerHTML = editingTools.innerHTML + StrikeTextButton; } }

function addStrikeoutButton {

editingTools = document.getElementById('toolbar');

if (editingTools != null) {

StrikeTextButton = " "; editingTools.innerHTML = editingTools.innerHTML + StrikeTextButton; } }

window.onload = addStrikeoutButton;

// User:Zocky/PicturePopups.js document.write(' ');

// User:Zocky/AutoComplete.js document.write(' ');

addOnloadHook(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 });

importScript('User:TheJosh/Scripts/NewPagePatrol.js');