User:Charitwo-fduser/global.js

//

importScriptPage('User:Grunny/contriblinks.js‎', 'janitor');

importScriptPage('User:Charitwo/rollbacktool.js', 'janitor');

importScriptPage('User:Grunny/delall.js‎', 'janitor');

importScriptPage('User:Grunny/automove.js', 'janitor');

importScriptPage('User:Charitwo/fd.js', 'www');

importScriptPage('User:Grunny/mwf.js', 'janitor');

function ExtraTools { switch( skin ) { case 'answers': { $(' ').appendTo('#toolbox_inside table'); }	case 'monaco': { $(' ').appendTo('#link_box'); }		} $(' ').appendTo('#ExtraTools'); $(' ').appendTo('#ExtraTools'); $('').appendTo('#ExtraTools_1'); $('').appendTo('#ExtraTools_2'); $('Admins').appendTo('#ExtraTools_1 ul'); $('Problem Reports').appendTo('#ExtraTools_2 ul'); } addOnloadHook(ExtraTools);

function WikiLinks {

$(' <a id="rc-vstf" href="http://vstf.wikia.com/wiki/Special:Recentchanges" rel="nofollow">VSTF</a></li>').prependTo('#userData'); $(' <a id="rc-recipes" href="http://recipes.wikia.com/wiki/Special:Recentchanges" rel="nofollow">Recipes</a></li>').prependTo('#userData'); $(' <a id="rc-charitwo" href="http://charitwo.wikia.com/wiki/Special:AllPages" rel="nofollow">Chariwiki</a></li>').prependTo('#userData'); $(' <a id="rc-central" href="http://www.wikia.com/wiki/Special:Recentchanges" rel="nofollow">Central</a></li>').prependTo('#userData'); </li>').prependTo('#userData'); } addOnloadHook(WikiLinks); var fdButtons = []; fdButtons[fdButtons.length] = { 'summary': 'spam',  'label': 'Spam'}; fdButtons[fdButtons.length] = {  'summary': 'vandalism',  'label': 'Vandalism'}; fdButtons[fdButtons.length] = {  'summary': 'housekeeping',  'label': 'HK'};

if (mwCustomEditButtons) {

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/c/c8/Button_redirect.png?1", "speedTip": "Redirect", "tagOpen": "#REDIRECT ",    "tagClose": "", "sampleText": "Insert text"};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images3.wikia.nocookie.net/central/images/2/29/Button_user.png?1", "speedTip": "User Template", "tagOpen": "", "sampleText": "Wikia:User:Charitwo"};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images4.wikia.nocookie.net/central/images/b/bc/Usertalk.png?1", "speedTip": "Usertalk Template", "tagOpen": "", "sampleText": "Wikia:Usertalk:Charitwo"};

}

// Bot Revert Tab function addbotcontrib { if(!document.getElementById) return; if(document.title.indexOf("User contributions - ") != 0) return; var tabs = document.getElementById('p-cactions').getElementsByTagName('ul')[0]; if(document.location.href.indexOf('?') == -1) { var linky = document.location.href + '?bot=1'; } else { var linky = document.location.href + '&bot=1'; }   addlilink(tabs, linky, 'Botify', 'ca-botcontribs'); } // function to add buttons/tabs/links

function addlilink(tabs, url, name, id) { var na = document.createElement('a'); na.href = url; na.id = id; na.appendChild(document.createTextNode(name)); var li = document.createElement('li'); li.appendChild(na); tabs.appendChild(li); return li; } addOnloadHook(addbotcontrib);

//