User:Masem/monobook.js

/*

importScript('User:Ioeth/friendly.js'); //importScript('User:Supadawg/secedit.js'); importScript('User:AzaToth/morebits.js'); importScript('User:AzaToth/twinklefluff.js'); importScript('Wikipedia:WikiProject User scripts/Scripts/Add LI menu'); importStylesheet('Wikipedia:WikiProject User scripts/Scripts/Add LI menu/css'); importScript('User:AzaToth/twinklewarn.js'); importScript('User:AzaToth/twinklearv.js'); importScript('User:AzaToth/twinklespeedy.js'); importScript('User:AzaToth/twinklediff.js'); importScript('User:AWeenieMan/furme.js'); importScript('User:Cameltrader/Advisor.js'); importScript('User:Mr.Z-man/refbuttons.js'); importScript("User:GregU/familytree.js"); importScript('User:TheDJ/Gadget-HotCat.js'); importScript('User:MJCdetroit/monobook.js');

importScript('User:MarkS/extraeditbuttons.js'); //User:MarkS/extraeditbuttons.js

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

importScript('User:AndyZ/peerreviewer.js'); //User:AndyZ/peerreviewer.js

// User:Outriggr/metadatatest.js importScript('User:Outriggr/metadatatest.js'); assessmentMyTemplateCode = ["", "", ""]; assessmentDefaultProject = "TemplateA"; //

importScript('User:Dr pda/articlehistory.js'); //User:Dr pda/articlehistory.js

// User:Lupin/popups.js

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

function addlilink(node, href, text, id, tooltip, accesskey) { // the code below is mostly copied from mw.util.addPortletLink

var link = document.createElement( "a" ); link.appendChild( document.createTextNode( text ) ); link.href = href;

var item = document.createElement( "li" ); item.appendChild( link ); if ( id ) item.id = id;

if ( accesskey ) { link.setAttribute( "accesskey", accesskey ); tooltip += " ["+accesskey+"]"; }       if ( tooltip ) { link.setAttribute( "title", tooltip ); }       updateTooltipAccessKeys( new Array( link ) );

node.appendChild( item );

return item; }

//

function addTab(url, name, id, title, key) { return mw.util.addPortletLink('p-cactions', url, name, id, title, key); }

// From code by raylu // // // This script adds a "CVG Deletion" tab to the top of article pages // when in edit mode. It is disabled for the User namespace.

function doCvgdeletion { document.editform.wpTextbox1.value = document.editform.wpTextbox1.value + '\n{' + '{' + 'subst' + ':' + 'CVG' + ' ' + 'deletion' + '}' + '}'; document.editform.wpSummary.value = 'Now a CVG deletion.'; document.editform.wpMinoredit.checked = true; document.editform.submit; }

function addCvgdeletion { addTab("javascript:doCvgdeletion", "cvgdeletion", "ca-cvgdeletion", "CVG Deletion", ""); akeytt; }

$(function { if (document.title.indexOf("User:") != -1 || document.title.indexOf("User talk:") != -1 || document.title.indexOf("Articles for deletion") == -1) {     return;  }  if (document.title.indexOf("Editing ") != -1) {  addOnloadHook(addCvgdeletion);  } });