User:Thebrains222/wikia.js

///////////////Add links to Toolbar if ( wgNamespaceNumber !=401 && !window.ToolbarLinksLoad ) { addOnloadHook( addToolbarLinks ); } var ToolbarLinksLoad = true; // prevent duplication function addToolbarLinks { $('Page maintenance').appendTo('ul.tools'); $('Speedy delete/move').appendTo('ul.tools'); $('JS</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/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/RuneScape:Counter-Vandalism_Unit">CVU<img src="http://upload.wikimedia.org/wikipedia/commons/2/2e/Crystal_Clear_action_button_cancel.png" width="15" height="15" align="left" border="0"></a></li>').appendTo('ul.tools'); $('<a href="/wiki/Special:RecentChanges">Recents<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/Forum:Yew_Grove">Yew Grove<img src="http://upload.wikimedia.org/wikipedia/commons/f/fe/Crystal_Clear_app_browser.png" width="15" height="15" align="left" border="0"></a></li>').appendTo('ul.tools'); $('<a href="/wiki/Special:Log/newusers">New users<img src="http://upload.wikimedia.org/wikipedia/commons/c/ca/Crystal_Clear_app_Login_Manager.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="100" height="33" 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/Projects">Projects</a></li>').appendTo('ul.GlobalNavigation'); $('<a href="/wiki/Special:Watchlist">Watchlist</a></li>').appendTo('ul.GlobalNavigation'); $('<a href="/wiki/User:Thebrains222/Counter_Vandalism_Feed">Counter-Vandalism feed</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/Projects">Projects</a></li>').appendTo('.AccountNavigation > li > ul.subnav'); $('<a href="/wiki/Special:Watchlist">Watchlist</a></li>').appendTo('.AccountNavigation > li > ul.subnav'); $('<li id="Editcount1"><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 Small', ns: 'User talk', open: 'Again, welcome.', close: , sample:  }); toolbarTemplates.push({ name: 'Custom Welcome', ns: 'User talk', open: , 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 add spam onto articles, thanks.', close: ' ~', sample: '' }); toolbarTemplates.push({ name: 'Don\'t add rubbish to articles', ns: 'User talk', open: 'Don\'t add rubbish to articles, it is considered \'\'\'vandalism\'\'\'.', 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: 'Don\'t add misinformation to articles', ns: 'User talk', open: 'Don\'t add misinformation to articles as it is considered \'\'\'vandalism\'\'\'. If you think the information you added is correct, please discuss it,', 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 ***/

/***Exchange/Vandal watch scripts ***/ /**importScript('User:Thebrains222/exchangewatch.js'); importScript('User:Thebrains222/recentchanges.js'); importScript('User:Thebrains222/log.js'); importScript('User:Thebrains222/abuselog.js');***/

/***Exchange/Vandal watch scripts ***/ importScript('User:Suppa_chuppa/hybrid.js');