User:Seqsea/vector.js

// User:Lupin/popups.js - please include this line

mw.loader.load(            'https://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'             + '&action=raw&ctype=text/javascript&dontcountme=s');

simplePopups=true; popupStructure='original'; popupAdminLinks=false; popupActionsMenu=false; popupNavLinkSeparator=' &sdot; '; popupRevertSummary="Revert (vandalism) to revision %s using popups"; popupQueriedRevertSummary="Revert (vandalism) to revision $1 dated $2 by $3 using popups";

popupShortcutKeys=true;

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

// From http://en.wikipedia.org/wiki/Wikipedia:WikiProject_User_scripts/Scripts/Edit_Top // Add an [edit top] link to pages $(function {  // if this is preview page or generated page, stop  if(document.getElementById("wikiPreview") || window.location.href.indexOf("/wiki/Special:") != -1) return;

// get the page title var pageTitle = document.title.split(" - ")[0].replace(" ", "_");

// create div and set innerHTML to link var divContainer = document.createElement("div"); divContainer.innerHTML = ' [edit top] ';

// insert divContainer into the DOM before the h1 if(window.location.href.indexOf("&action=edit") == -1) document.getElementById("content").insertBefore(divContainer, document.getElementsByTagName("h1")[0]);

if(window.location.href.indexOf("&action=edit&section=0") != -1) document.getElementById("wpSummary").value = "/* Intro */ "; });

// Stolen lovingly (User:Henrik/sandbox/google-search) from User:Henrik function install_search { document.getElementById('searchBody').innerHTML=' '+ ''+ ''+ ''+ ''+ 'Web'+ 'WP'+ ' '; } addOnloadHook(install_search);