User:BlueDevil/global.js

// var console;

// ***************************************************************** // Load various external scripts // ***************************************************************** function appendScript(url) { if(wgServer.indexOf('requests.wikia')!=-1) return; var scriptElem = document.createElement('script'); scriptElem.setAttribute('src',url); scriptElem.setAttribute('type','text/javascript'); document.getElementsByTagName('head')[0].appendChild(scriptElem); } appendScript('http://www.wikia.com/index.php?title=User:Splarka/contribtools.js&action=raw&ctype=text/javascript&dontcountme=s') appendScript('http://www.wikia.com/index.php?title=User:Splarka/stripsource.js&action=raw&ctype=text/javascript&dontcountme=s') appendScript('http://www.wikia.com/index.php?title=User:Splarka/fastdelete.js&action=raw&ctype=text/javascript&dontcountme=s') appendScript('http://www.wikia.com/index.php?title=User:Splarka/interwikitools.js&action=raw&ctype=text/javascript&dontcountme=s')

if(skin=='monobook'){ appendScript('http://www.wikia.com/index.php?title=User:Sannse/Imagelisttools.js&action=raw&ctype=text/javascript&dontcountme=s') }

// ***************************************************************** // &bot=1 on contribs pages. // ***************************************************************** function hiderollback { var botlink = document.location.href; if(botlink.indexOf('?')==-1) { botlink += '?bot=1'; } else { botlink += '&bot=1'; } addPortletLink('p-cactions', botlink, '&bot=1', 'ca-bot'); } if((skin == "monobook")&&(wgCanonicalSpecialPageName == 'Contributions')) addOnloadHook(hiderollback)

// ***************************************************************** // Custom edit buttons // ***************************************************************** if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/3/3c/Button_pre.png", "speedTip": " tag", "tagOpen": "\n", "tagClose": "\n", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/2/23/Button_code.png", "speedTip": " ", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/7/7b/Button_pre_nowiki.png", "speedTip": " tags", "tagOpen": "\n", "tagClose": "\n", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/7/73/Button_code_nowiki.png", "speedTip": " ", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/c/ce/Button_ampersand_lt-gt_semicolon.png", "speedTip": "&lt;tag here&gt;", "tagOpen": "&lt;", "tagClose": "&gt;", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/3/3b/Button_template_alt.png", "speedTip": "", "tagOpen": "", "sampleText": "wikia:User:BlueDevil"};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/c/c8/Button_redirect.png", "speedTip": "Redirect", "tagOpen": "#REDIRECT ",    "tagClose": "", "sampleText": "w:User talk:BlueDevil"};

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

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images4.wikia.nocookie.net/central/images/7/70/Button_disambig.png", "speedTip": "Disambiguation", "tagOpen": "", "tagClose": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images2.wikia.nocookie.net/central/images/1/13/Button_enter.png", "speedTip": "Line break", "tagOpen": " ", "tagClose": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/central/images/5/58/Button_small.png", "speedTip": "Small", "tagOpen": " ", "tagClose": " ", "sampleText": "Small Text"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images2.wikia.nocookie.net/central/images/1/12/Button_gallery.png", "speedTip": "Insert a picture gallery", "tagOpen": "\n", "sampleText": "Image:Example.jpg|Caption1\nImage:Example.jpg|Caption2"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images3.wikia.nocookie.net/central/images/4/4a/Button_table.png", "speedTip": "Insert a table", "tagOpen": '{| class="wikitable"\n|-\n', "tagClose": "\n|}", "sampleText": "! header 1\n! header 2\n! header 3\n|-\n| row 1, cell 1\n| row 1, cell 2\n| row 1, cell 3\n|-\n| row 2, cell 1\n| row 2, cell 2\n| row 2, cell 3"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/central/images/1/16/Button_reflink_alternate.png", "speedTip": "Insert a reference", "tagOpen": " ", "sampleText": "Insert footnote text here"};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/central/images/4/4a/Button_welcome.png", "speedTip": "Welcome a user", "tagOpen": "--~", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/c/cd/Button_welcome_anon.png", "speedTip": "Welcome an IP", "tagOpen": "--~", "tagClose": "", "sampleText": ""};

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/9/9f/Button_defaultsort.png", "speedTip": "defaultsort", "tagOpen": "", "sampleText": "Insert key here"};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/b/b4/Button_category03.png", "speedTip": "Category", "tagOpen": "[[Category:",    "tagClose": "]]", "sampleText": ""}; }

/*********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?server=' + wgServer);

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

// Tools/Navigation_popups document.write(' ');

newOption('popupAdminLinks', true);

//