User:Uberfuzzy/global.js

/* */ function appendScript(url) { var scriptElem = document.createElement('script'); scriptElem.setAttribute('src',url); scriptElem.setAttribute('type','text/javascript'); document.getElementsByTagName('head')[0].appendChild(scriptElem); }

appendScript('http://localhost/wikia/js/toolbox_setup.js'); appendScript('http://localhost/wikia/js/add_tools.js');

appendScript('http://localhost/wikia/js/cs_linker.js');

appendScript('http://localhost/wikia/js/enhanced_LC.js');

appendScript('http://localhost/wikia/js/lookup_link.js'); appendScript('http://localhost/wikia/js/regex_link.js');

appendScript('http://localhost/wikia/js/ninja.js');

if (mwCustomEditButtons) {

/*** wrappers *****/

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/2/28/Button_wikilink.png", "speedTip": "Link", "tagOpen": "",    "tagClose": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/3/3b/Button_template_alt.png", "speedTip": "template", "tagOpen": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/b/b4/Button_category03.png", "speedTip": "Category", "tagOpen": "[[Category:",    "tagClose": "]]", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/c/c8/Button_redirect.png", "speedTip": "Redirect", "tagOpen": "#REDIRECT ",    "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/c/c9/Button_strike.png", "speedTip": "Strike", "tagOpen": " ", "tagClose": " ", "sampleText": "Strike-through text"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/f/f6/Button_html_comment.png", "speedTip": "HTML comment", "tagOpen": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/2/23/Button_code.png", "speedTip": "code", "tagOpen": " ", "sampleText": "Insert code here"};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/7/73/Button_code_nowiki.png", "speedTip": "code+nowiki", "tagOpen": " ", "sampleText": "Insert code here"};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/9/9f/Button_defaultsort.png", "speedTip": "defaultsort", "tagOpen": "", "sampleText": "Insert key here"};

/*** inserts *****/ mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/7/70/Button_disambig.png", "speedTip": "disambig", "tagOpen": "", "tagClose": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/d/d1/Button_pipehack.png", "speedTip": "WikiTable hack", "tagOpen": "|", "tagClose": "", "sampleText": ""};

/*** helper stuff *****/ mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/2/29/Button_user.png", "speedTip": "My WikiaHelper User template", "tagOpen": "", "tagClose": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/0/0f/Button_cake.png", "speedTip": "it is a lie", "tagOpen": "", "tagClose": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/common/skins/common/images/button_sig.png", "speedTip": "fake sign", "tagOpen": "--User:Uberfuzzy ", "tagClose": "", "sampleText": ""};

appendScript('http://localhost/wikia/js/ceb.php?wkid=' + wgCityId); }

/*********start fd setup ******************/ appendScript('http://www.wikia.com/index.php?title=User:Splarka/fastdelete.js&action=raw&ctype=text/javascript&dontcountme=s')

/*********end fd setup, start fd use ******************/

var fdButtons = []; fdButtons[fdButtons.length] = { 'summary': 'spam', 'label': 's'}; fdButtons[fdButtons.length] = { 'summary': 'vandalism', 'label': 'v'}; fdButtons[fdButtons.length] = { 'summary': 'redirect left over from move vandalism', 'label': 'mpv'}; fdButtons[fdButtons.length] = { 'summary': 'housekeeping', 'label': 'h'}; fdButtons[fdButtons.length] = { 'summary': ' ', 'label': 'nr'};

appendScript('http://localhost/wikia/js/fast_delete.php?wkid=' + wgCityId);

/*************end fd************************************/

if(typeof quantserve != 'function') { function quantserve {   return false; } }

/* */