User:Thebrains222/wikia.js

///////////////Add links to Toolbar if ( wgNamespaceNumber !=401 && !window.ToolbarLinksLoad ) { addOnloadHook( addToolbarLinks ); } var ToolbarLinksLoad = true; // prevent duplication function addToolbarLinks { $('New users').appendTo('ul.tools'); $('Clan chat forum').appendTo('ul.tools'); $('Yew Grove').appendTo('ul.tools'); $('<a href="/wiki/Special:RecentChanges">Recent changes<img src="http://upload.wikimedia.org/wikipedia/commons/1/1b/Crystal_Clear_action_find.png" width="15" height="15" align="left" border="0"></a></li>').appendTo('ul.tools'); $('<a href="/wiki/Special:Log">Logs<img src="http://upload.wikimedia.org/wikipedia/commons/2/25/Crystal_Clear_app_kwrite.png" width="15" height="15" align="left" border="0"></a></li>').appendTo('ul.tools'); $('<a href="/wiki/User:Thebrains222/wikia.css">CSS<img src="http://upload.wikimedia.org/wikipedia/commons/d/d2/Crystal_Clear_app_stylesheet.png" width="15" height="15" align="left" border="0"></a></li>').appendTo('ul.tools'); $('<a href="/wiki/User:Thebrains222/wikia.js">JS<img src="http://upload.wikimedia.org/wikipedia/commons/2/26/Crystal_Clear_app_winprops.png" width="15" height="15" align="left" border="0"></a></li>').appendTo('ul.tools'); $('<a href="/wiki/Category:Speedy_move_candidates">Speedy move<img src="http://upload.wikimedia.org/wikipedia/commons/7/77/Crystal_Clear_action_reload.png" width="15" height="15" align="left" border="0"></a></li>').appendTo('ul.tools'); $('<a href="/wiki/RuneScape:Page_Maintenance">Page maintenance<img src="http://upload.wikimedia.org/wikipedia/commons/5/5d/Crystal_Clear_action_run.png" width="15" height="15" align="left" border="0"></a></li>').appendTo('ul.tools'); }

/////////Add links to Global Navigation\

//REMEMBER TO ADD CORRESPONDING li# TO CSS

if ( wgNamespaceNumber !=401 && !window.GlobalLinksLoad ) { addOnloadHook( addGlobalLinks ); } var GlobalLinksLoad = true; // prevent duplication function addGlobalLinks { $('<a href="http://www.runescape.com"><img src="http://images4.wikia.nocookie.net/__cb20100524052740/runescape/images/3/35/RuneScapeLogo.PNG" width="115" height="38" align="left" border="0"></a></li>').appendTo('ul.GlobalNavigation'); $('<a href="http://thebrains222.wikia.com/wiki/Main page">Testing Wiki</a></li>').appendTo('ul.GlobalNavigation'); $('<a href="http://community.wikia.com/wiki/Main page">Community Central</a></li>').appendTo('ul.GlobalNavigation'); $('<a href="http://rstools.ath.cx">RS Tools</a></li>').appendTo('ul.GlobalNavigation'); $('<a href="/wiki/User:BrainBot">BrainBot</a></li>').appendTo('ul.GlobalNavigation'); $('<a href="/wiki/User:Thebrains222/Sandboxes">Sandbox</a></li>').appendTo('ul.GlobalNavigation'); $('<a href="/wiki/Special:Watchlist">Watchlist</a></li>').appendTo('ul.GlobalNavigation'); }

/////////Add links to Account Navigation

if ( wgNamespaceNumber !=401 && !window.AccLinksLoad ) { addOnloadHook( addAccLinks ); } var AccLinksLoad = true; // prevent duplication

function addAccLinks { $('<a href="/wiki/User:Thebrains222/Sandboxes">Sandbox</a></li>').appendTo('.AccountNavigation > li > ul.subnav'); $('<a href="/wiki/Special:Watchlist">Watchlist</a></li>').appendTo('.AccountNavigation > li > ul.subnav'); $('<a href="/wiki/Special:EditCount/Thebrains222">Editcount</a></li>').appendTo('.AccountNavigation > li > ul.subnav'); }

//////////////////**********************************************////////////////// //////////////////**************Quarenon's scripts**************////////////////// //////////////////**********************************************//////////////////

///*************************/// // BEGIN AUTO-WELCOME SCRIPT // ///*************************/// // if (wgCanonicalNamespace == 'User_talk' && wgAction == 'edit' && wgArticleId === 0 && wgTitle.split('.').length != 4 && wgTitle.indexOf('/') == -1) { $(document).ready(function {		$('#wpTextbox1').val((typeof(window.autoWelcomeText) == 'undefined') ? '' : window.autoWelcomeText);		$('#wpSummary,#wpSummaryEnhanced').val((typeof(window.autoWelcomeSummary) == 'undefined') ? 'Welcome to the RuneScape Wiki!' : window.autoWelcomeSummary);	}); } // /*** END AUTO WELCOME SCRIPT ***/

///**********************/// // 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 = 1; // Add custom templates here

toolbarTemplates.push({ name: 'Custom Welcome', ns: 'User talk', open: , close: , sample: '' }); toolbarTemplates.push({ name: 'JPEG', ns: 'File', open: , sample:  }); toolbarTemplates.push({ name: 'Transparency needed', ns: 'File', open: , sample:  }); toolbarTemplates.push({ name: 'Crop', ns: 'File', open: , sample:  }); toolbarTemplates.push({ name: 'GIF', ns: 'File', open: , sample:  }); toolbarTemplates.push({ name: 'Combat interference', ns: 'File', open: , sample:  }); toolbarTemplates.push({ name: 'Too small', ns: 'File', open: , sample:  }); /*Anti-vandal templates*/ toolbarTemplates.push({ name: 'Don\'t spam articles', ns: 'User talk', open: 'Don\'t spam, thanks.', close: ' ~', sample: '' }); toolbarTemplates.push({ name: 'Don\'t add rubbish to articles', ns: 'User talk', open: 'Don\'t add rubbish to articles.', close: ' ~', sample: '' }); toolbarTemplates.push({ name: 'Don\'t add crap to articles', ns: 'User talk', open: 'Do not add crap to articles.', close: ' ~', sample: '' }); toolbarTemplates.push({ name: 'Don\'t blank pages', ns: 'User talk', open: 'Don\'t blank pages.', close: ' ~', sample: '' }); toolbarTemplates.push({ name: 'Don\'t remove content', ns: 'User talk', open: 'Don\'t remove content from pages,', close: ' ~', sample: '' }); toolbarTemplates.push({ name: 'Minor GEMW mistake', ns: 'User talk', open: 'Please make sure you update the GEMW correctly by following the instructions on the page, and double check any edits you make. Thank you,', close: ' ~', sample: '' }); toolbarTemplates.push({ name: 'GEMW Spam', ns: 'User talk', open: 'Please don\'t add spam to the GEMW. Thank you,', close: ' ~', sample: '' }); toolbarTemplates.push({ name: 'Reminder to correct file links', ns: 'User talk', open: '==Reminder==\nPlease remember to remove/correct image links after deleting a file. Thank you,', close: ' ~', sample: '' });

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

///*********************/// // BEGIN AUTO CVU SCRIPT // ///*********************///

// Enables automatic submission of edits. Change to 0 to disable. var autoCvuSubmit = 1;

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

/*** END AUTO CVU SCRIPT ***/

///**********************/// // BEGIN RC REVERT SCRIPT // ///**********************/// /* For help with this script, visit http://runescape.wikia.com/wiki/User:Quarenon/Scripts/RcRevert */ /* DO NOT EDIT THIS LINE! */ importScript('User:Quarenon/rcrollback.js'); /*** END RC REVERT SCRIPT ***/