User:Ose/global.js

//

importScriptPage('PurgeButton/code.js', 'dev'); importScriptPage('SkinSwitchButton/code.js', 'dev'); importScriptPage('ShowAdsButton/code.js', 'dev'); importScriptPage('AjaxRC/code.js', 'dev');

//////////////////////////////////////// function ExtraTools { switch( skin ) { case 'answers': { $(' ').appendTo('#toolbox_inside table'); }	case 'monaco': { $(' ').appendTo('#link_box'); }		} $(' ').appendTo('#ExtraTools'); $(' ').appendTo('#ExtraTools'); $(' ').appendTo('#ExtraTools_1'); $('').appendTo('#ExtraTools_1 td'); $(' ').appendTo('#ExtraTools_2'); $('').appendTo('#ExtraTools_2 td'); $('sysops').appendTo('#ExtraTools_1 td ul'); $('Version').appendTo('#ExtraTools_1 td ul'); $('<a href="/wiki/Special:PrefixIndex" rel="nofollow">PrefixIndex</a></li>').appendTo('#ExtraTools_1 td ul'); $('<a href="/wiki/Special:RecentChanges" rel="nofollow">RC</a></li>').appendTo('#ExtraTools_1 td ul'); $('common.<a href="/wiki/MediaWiki:Common.css" rel="nofollow">css</a>/<a href="/wiki/MediaWiki:Common.js" rel="nofollow">js</a></li>').appendTo('#ExtraTools_2 td ul'); $('monaco.<a href="/wiki/MediaWiki:Monaco.css" rel="nofollow">css</a>/<a href="/wiki/MediaWiki:Monaco.js" rel="nofollow">js</a></li>').appendTo('#ExtraTools_2 td ul'); $('ose.<a href="/wiki/User:Ose/monaco.css" rel="nofollow">css</a>/<a href="/wiki/User:Ose/monaco.js" rel="nofollow">js</a></li>').appendTo('#ExtraTools_2 td ul'); $('<a href="/wiki/Special:PrefixIndex/MediaWiki:Mon" rel="nofollow">mon...</a>').appendTo('#ExtraTools_2 td ul'); } addOnloadHook(ExtraTools);

////////////////////////////////////////

function WikiLinks { $(' </li>').prependTo('#userData'); $(' <a id="rc-central" href="http://www.wikia.com/wiki/Special:Recentchanges" rel="nofollow">Central</a></li>').appendTo('#rclinks'); $(' <a id="rc-spore" href="http://spore.wikia.com/wiki/Special:Recentchanges" rel="nofollow">Spore</a></li>').appendTo('#rclinks'); $(' <a id="rc-answers" href="http://answers.wikia.com/wiki/Special:Recentchanges" rel="nofollow">Answers</a></li>').appendTo('#rclinks'); $(' <a id="rc-wow" href="http://wow.wikia.com/wiki/Special:Recentchanges" rel="nofollow">WoW</a></li>').appendTo('#rclinks'); $(' <a id="rc-ose" href="http://ose.wikia.com/wiki/Special:Recentchanges" rel="nofollow">Ose</a></li>').appendTo('#rclinks'); $(' <a id="rc-dev" href="http://dev.wikia.com/wiki/Special:Recentchanges" rel="nofollow">dev</a></li>').appendTo('#rclinks'); } addOnloadHook(WikiLinks);

/////////////////////////////////////////////////

importScriptPage('FastDelete/code.js', 'dev');

var fdButtons = []; fdButtons[fdButtons.length] = { 'summary': 'spam', 'label': 's'}; fdButtons[fdButtons.length] = { 'summary': 'vandalism', 'label': 'v'}; fdButtons[fdButtons.length] = { 'summary': 'housekeeping', 'label': 'h'}; fdButtons[fdButtons.length] = { 'summary': 'ancient/abandoned concept', 'label': 'a/ac'}; fdButtons[fdButtons.length] = { 'summary': ' ', 'label': 'nr'};

////////////////////////////////////////

/*** custom edit buttons*****/

if (mwCustomEditButtons) {

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/central/images/2/28/Button_wikilink.png?1", "speedTip": "Link", "tagOpen": "w:c:",    "tagClose": "", "sampleText": "wikiname"};

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

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

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

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

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

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/central/images/3/33/Button_onlyinclude.png", "speedTip": "onlyinclude", "tagOpen": "<" + "onlyinclude" + ">", "tagClose": "</" + "onlyinclude" + ">", "sampleText": "Insert key here"};

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

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/central/images/2/29/Button_user.png?1", "speedTip": "My global User template", "tagOpen": "", "tagClose": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/central/images/2/29/Button_user.png?1", "speedTip": "My global Usertalk template", "tagOpen": "", "tagClose": "", "sampleText": ""};

}

//