User:Walrus068/monobook.js

// // some stoof $(document).ready(function {

// adds crouton link to p-cactions $('crouton').appendTo('div#p-cactions ul');

// adds links to sidebar $('Recent changes').insertAfter('div#p-Navigation li#n-Main-Page'); $('New files').appendTo('div#p-Navigation ul'); $('div#p-Navigation li#n-recentchanges').attr('id', 't-recentchanges').prependTo('div#p-tb ul'); //t- to fit in yo   $('monobook.js').prependTo('div#p-tb ul');

// unchecks leave redirect box $('input#wpLeaveRedirect').removeAttr('checked'); });

// exch ns mods if (wgCanonicalNamespace == 'Exchange') { $(document).ready(function {

// opens check price link on load if (wgAction != 'edit' && wgAction != 'submit' && wgAction != 'history' && history.length == '1') { var exchlink = $('a[href^="http://services.runescape.com/m=itemdb_rs/viewitem.ws"]').attr('href'); $('a[href^="http://services.runescape.com/m=itemdb_rs/viewitem.ws"]').attr('id', 'nuts'); //so i know the selector is functional window.open(exchlink); }

// shorter edit page if (wgAction == 'edit' || wgAction == 'submit') { $('textarea#wpTextbox1').attr('rows', '15'); $('div#gemw_guide').css('display', 'none'); }   }); }

// edit user's talk on rollback if (wgAction != 'history' && wgPageName != 'Special:Contributions') { $(document).ready(function {       var talklink = $('#mw-diff-ntitle2 a[title^="User talk"]').attr('href') + '?action=edit';        $('#mw-diff-ntitle2 a[title^="User talk"]').attr('id', 'nuts'); //so i know the selector is functional        $('span.mw-rollback-link a').click(function { window.open(talklink); });   }); }

// warn/welcome if ((wgAction == 'edit' || wgAction == 'submit') && wgCanonicalNamespace == 'User_talk' && wgArticleId === 0) { $(document).ready(function {       var summary = 'input#wpSummary.mw-summary',            textbox = 'textarea#wpTextbox1';        //warn        $(textbox).val(' ~').select;        $(summary).val('Warn');        //welcome        $('<input type="button" value="Welcome">').prependTo('div#toolbar').click(function { $(textbox).val('Walrus068'); $(summary).val('Welcome!'); });   }); }

if (wgAction == 'edit' || wgAction == 'submit') { $(document).ready(function {       //attributes        $('#wpTextbox1').focus;        $('#wpSave').attr('tabindex', '1');        $('#wpSummary').attr('tabindex', '2');        $('#wpPreview').attr('tabindex', '3');        $('#wpMinoredit').attr('tabindex', '4');        //regex form        $(' ').insertBefore('textarea#wpTextbox1');        $('<input type="text" id="regex" value="(\\| | \\|)"><input type="text" id="modifiers" value="g"><input type="text" id="newtext" value="|">').appendTo('div#regexform');        $('<input type="button" value="Perform">').appendTo('div#regexform').click(function { var regex = new RegExp($('input#regex').val, $('input#modifiers').val), replacement = $('input#newtext').val; $('textarea#wpTextbox1').val($('textarea#wpTextbox1').val.replace(regex, replacement)); });   }); } //~

/*** BEGIN TEMPLATES SCRIPT ***/

/* For help with this script, visit http://runescape.wikia.com/wiki/User:Quarenon/Scripts/Templates */

var toolbarTemplates = []; var toolbarFillSummary = 1; var toolbarFillHeader = 0;

// Add custom templates here toolbarTemplates.push({ name: 'jpeg', ns: 'File', open: , close: , sample: '' }); toolbarTemplates.push({ name: 'gif', ns: 'File', open: , close: , sample: '' }); toolbarTemplates.push({ name: 'Anti-aliasing needed', ns: 'File', open: , close: , sample: '' }); toolbarTemplates.push({ name: 'Standard detail', ns: 'File', open: , close: , sample: '' }); toolbarTemplates.push({ name: 'Greater detail', ns: 'File', open: , close: , sample: '' }); toolbarTemplates.push({ name: 'Facial features', ns: 'File', open: , close: , sample: '' }); toolbarTemplates.push({ name: 'Lighting detail', ns: 'File', open: , close: , sample: '' }); toolbarTemplates.push({ name: 'Transparency', ns: 'File', open: , close: , sample: '' }); toolbarTemplates.push({ name: 'Translucency', ns: 'File', open: , close: , sample: '' }); toolbarTemplates.push({ name: 'Cleanup image', ns: 'File', open: , sample:  }); toolbarTemplates.push({ name: 'Delete unnecessary', ns: 'File', open: , close: , sample: '' }); toolbarTemplates.push({ name: 'Delete duplicate', ns: 'File', open: , sample:  }); toolbarTemplates.push({ name: 'Delete replaced', ns: 'File', open: , sample:  });

/* DO NOT EDIT THIS LINE! */ importScript('User:Quarenon/templates.js');

/*** END TEMPLATES SCRIPT ***/

importScript('User:Walrus068/undoplussummaries.js'); importScript('User:Suppa_chuppa/hybrid.js'); //