User:Joeytje50/wikia.js

/*** 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: 'Vandalism', ns: 'User talk', open: '', close: ' ~', sample: '__CONTENTPAGE__' }); toolbarTemplates.push({ name: 'Welcome', ns: 'User talk', open: , sample:  }); toolbarTemplates.push({ name: 'Infobox Item', ns: 'Main', open: , sample:  }); toolbarTemplates.push({ name: 'Infobox Monster', ns: 'Main', open: , sample:  }); toolbarTemplates.push({ name: 'Infobox NPC', ns: 'Main', open: , sample:  }); toolbarTemplates.push({ name: 'User page with red links leading to it', ns: 'User', open: , close: , sample: '' }); toolbarTemplates.push({ name: 'IP editing userpage', ns: 'User talk', open: 'Please remember to log in before editing userpages.', close: '~', sample: ''})

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

// /*** END TEMPLATES SCRIPT ***/

//Add links to Toolbar if ( wgNamespaceNumber !=401 && !window.ToolbarLinksLoad ) { addOnloadHook( addToolbarLinks ); } var ToolbarLinksLoad = true; // prevent duplication

function addToolbarLinks { $('JS').appendTo('ul.tools'); $('CSS').appendTo('ul.tools'); $('YG').appendTo('ul.tools'); $('RS:UH').appendTo('ul.tools'); $('<a href="/wiki/RuneScape:Administrator_requests">RS:AR</a></li>').appendTo('ul.tools'); $('<a href="/wiki/Special:Log">Logs</a> (<a href="/wiki/Special:Log/newusers">newusers</a>)</li>').appendTo('ul.tools'); $('<a href="/wiki/Special:RecentChanges">RC</a> (<a href="/wiki/Special:RecentChanges?hideliu=1">IPs</a> | <a href="/wiki/User:Suppa_chuppa/RecentChangesHybrid?useskin=monobook">hybrid</a>)</li>').appendTo('ul.tools'); $('<a href="http://nl.runescape.wikia.com">RSWNL</a></li>').appendTo('ul.tools'); $('<ul id="toolbardropdown2" class="showtext tools-menu" style="right:auto;bottom:96px;"> <a href="/wiki/firstlinkpage" data-name="specialpages">firstlinktext</a></li> <a href="/wiki/secondlinkpage">secondlinktext</a></li> <a href="/wiki/thirdlinkpage">thirdlinktext</a></li></ul>').appendTo('ul.tools'); }

/*** 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 ***/

/** Adding editreport link to userpages **/

var userlinksloaded = false; $(function{	if (userlinksloaded) return;	userlinksloaded = true;	if (wgNamespaceNumber != 2 && wgNamespaceNumber != 3) return;	$("").attr("id", "Editreport").append($("").attr("href", "http://rstools.ath.cx/editreport.php?username=" + encodeURIComponent(wgTitle.split("/")[0]) + "&wiki=" + wgDB).text("Editreport")).appendTo("ul.tabs"); });

/** GE/RC WATCH SCRIPT **/

importScript('User:Suppa_chuppa/hybrid.js'); importScript('User:Suppa_chuppa/recentchanges2.js'); if(document.location.href=="http://runescape.wikia.com/wiki/User:Quarenon/Scripts/Exchange_Watch")document.location.href="http://runescape.wikia.com/wiki/User:Quarenon/Scripts/Exchange_Watch?useskin=monobook"; if(document.location.href=="http://runescape.wikia.com/wiki/User:Suppa_chuppa/RecentChangesHybrid")document.location.href="http://runescape.wikia.com/wiki/User:Suppa_chuppa/RecentChangesHybrid?useskin=monobook";

/* Adding back the namespace names before the page headers */

$(function{ var newTitle = $("#title-meta").html; if (!newTitle) {	if ( wgNamespaceNumber != 0 && wgNamespaceNumber != -1) {		$(".firstHeading,#WikiaUserPagesHeader h1,#WikiaPageHeader h1").html(wgCanonicalNamespace.split('_').join(' ').split('Project').join('RuneScape') + ':' + wgTitle);		$(".#user_masthead_head h2").html(newTitle + "<small id='user_masthead_since'>" + edits + " ");	} } else { var edits = $("#user_masthead_since").text; $(".firstHeading,#WikiaUserPagesHeader h1,#WikiaPageHeader h1").html(newTitle); $(".#user_masthead_head h2").html(newTitle + "<small id='user_masthead_since'>" + edits + " "); } });

importScript('User:Suppa_chuppa/warn.js');

importScript('The_last_username_left/HideCookEdits.js');

// Watchlist notifier script

importScript('User:Joeytje50/watchlist.js');

//More characters allowed in summary bar. Maximum allowed is 250. Any characters behind the 250th are ignored.

document.getElementById("wpSummary").setAttribute("maxlength", "250");

/*** BEGIN AUTO WELCOME SCRIPT ***/ // /* For help with this script, visit http://runescape.wikia.com/wiki/User:Quarenon/Scripts/Autowelcome */ /* Your user welcome text. Unless you have your own welcoming text/template, just use the default. */ var autoWelcomeText = ''; var autoWelcomeSummary = 'Welcome'; /* DO NOT CHANGE THIS LINE! */ importScript('User:Quarenon/autowelcome.js'); // /*** END AUTO WELCOME SCRIPT ***/

/* Recent Changes scripts */

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

/* Finding duplicate files more easily */

importScript('User:Joeytje50/dupes.js');