User:RyanBot/wikia.js

/************Non-Quarenon scripts*************/ ///************************************/// // Adding stuff to the floating toolbar // ///************************************/// //Add links to Toolbar if ( wgNamespaceNumber !=401 && !window.ToolbarLinksLoad ) { addOnloadHook( addToolbarLinks ); } var ToolbarLinksLoad = true; // prevent duplication function addToolbarLinks { $('Yew Grove').appendTo('ul.tools'); $('New users').appendTo('ul.tools'); $('Recents').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'); } ///********************************************************/// // Adding links to the (formally) global navigation section // ///********************************************************/// //Add links to Global Navigation\ if ( wgNamespaceNumber !=401 && !window.GlobalLinksLoad ) { addOnloadHook( addGlobalLinks ); } var GlobalLinksLoad = true; // prevent duplication function addGlobalLinks { $('<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">Edit Reports</a></li>').appendTo('ul.GlobalNavigation'); } //////////////////**********************************************////////////////// /*******************************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') ?  + wgUserName +  : 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:  }); /* 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 ***/