User:Dantman/global.config.js

/* */

////////////////////////////////// // User:Dantman's monobook. // //////////////////////////////////

statusChangeAt = new Array( 'en.anime.wikia.com' ); stressChangeAt = new Array( 'en.anime.wikia.com' ); wikiaDomainList = new Array(	{ id: 'fp001', domain: 'fp001.development.wikia-inc.com', projectNS: 'fp001', name: 'fp001 dev', title: 'fp001 Development' },	null,	{ id: 'central', domain: 'www.wikia.com', projectNS: 'Wikia', name: 'Central', title: 'Wikia Central', mainpage: 'Wikia', interwiki: 'w:' },	{ id: 'requests', domain: 'requests.wikia.com', projectNS: 'Request_Wiki', name: 'Requests', title: 'Wikia Requests', mainpage: 'Request_Wiki:Open_requests' },	{ id: 'inside', domain: 'inside.wikia.com', projectNS: 'Inside Wikia', name: 'Inside', title: 'Inside Wikia' },	null,	{ id: 'gaia', domain: 'gaia.wikia.com', projectNS: 'Gaiapedia', name: 'The Gaiapedia', title: 'The Gaiapedia', mainpage: 'The_Gaiapedia' },	{ id: 'odysseyonline', domain: 'odysseyonline.wikia.com', projectNS: 'Odyssey_Online_Wiki', name: 'Odyssey Online', title: 'Odyssey Online Classic Wiki' },	null,	{ id: 'anime', domain: 'en.anime.wikia.com', projectNS: 'Animepedia', name: 'Animepedia', title: 'The English Animepedia', interwiki: 'Anime:' }, null, { id: 'manga', domain: 'en.manga.wikia.com', projectNS: 'MangaWiki', name: 'Manga Wiki', title: 'The English Manga Wiki' }, null, { id: 'alicesoft', domain: 'alicesoft.wikia.com', projectNS: 'AliceSoftWiki', name: 'Alice Soft', title: 'Alice Soft Wiki' }, null, { id: 'typemoon', domain: 'typemoon.wikia.com', projectNS: 'TYPE-MOON_Wiki‎', name: 'TYPE-MOON', title: 'TYPE-MOON Wiki', mainpage: 'TYPE-MOON_Wiki' }, null, { id: 'naruto', domain: 'naruto.wikia.com', projectNS: 'Narutopedia', name: 'Narutopedia', title: 'The Narutopedia' }, { id: 'bleach', domain: 'bleach.wikia.com', projectNS: 'Bleach Wiki', name: 'Bleach Wiki', title: 'Bleach Wiki' }, { id: 'inuyasha', domain: 'inuyasha.wikia.com', projectNS: 'InuYasha', name: 'InuYasha Wiki', title: 'The InuYasha Wiki', interwiki: 'InuYasha:' }, { id: 'ghostintheshell', domain: 'ghostintheshell.wikia.com', projectNS: 'Ghost_in_the_Shell_Wiki', name: 'GITS', title: 'Ghost in the Shell Wiki' }, { id: 'mar', domain: 'mar.wikia.com', projectNS: 'Marpedia', name: 'Marpedia', title: 'Marpedia' }, { id: 'dragonball', domain: 'dragonball.wikia.com', projectNS: 'Dragon_Ball', name: 'Dragon Ball', title: 'Dragon Ball Wiki' }, { id: 'gundam', domain: 'gundam.wikia.com', projectNS: 'Gundam_Wiki', name: 'Gundam', title: 'Gundam Wiki' }, { id: 'beyblade', domain: 'beyblade.wikia.com', projectNS: 'Beyblade_Wiki', name: 'Beyblade', title: 'Beyblade Wiki' }, { id: 'gaogaigar', domain: 'gaogaigar.wikia.com', projectNS: 'GaoGaiGar-Betterman_Wiki', name: 'GaoGaiGar', title: 'GaoGaiGar-Betterman Wiki', mainpage: 'GaoGaiGar-Betterman_Wiki' }, { id: 'yugioh', domain: 'yugioh.wikia.com', projectNS: 'Yu-Gi-Oh!', name: 'Yu-Gi-Oh!', title: 'Yu-Gi-Oh! Wiki' }, null, { id: 'megaman', domain: 'megaman.wikia.com', projectNS: 'MMKB', name: 'Mega Man', title: 'The Mega Man Knowledge Base' }, { id: 'ccs', domain: 'ccs.wikia.com', projectNS: 'CardCaptor_Sakura', name: 'Card Captor', title: 'Card Captor Sakura Wiki' }, { id: 'fma', domain: 'fma.wikia.com', projectNS: 'Full_Metal_Alchemist', name: 'FMA', title: 'Full Metal Alchemist Wiki' }, { id: 'onepiece', domain: 'onepiece.wikia.com', projectNS: 'One_Piece_Encyclopedia', name: 'One Piece', title: 'One Piece Encyclopedia' }, null, { id: 'kanzaka', domain: 'kanzaka.wikia.com', projectNS: 'KanzakaDex', name: 'KanzakaDex', title: 'KanzakaDex' }, { id: 'deathnote', domain: 'deathnote.wikia.com', projectNS: 'Death_Note_Wiki', name: 'Death Note', title: 'Death Note Wiki' }, { id: 'readordie', domain: 'readordie.wikia.com', projectNS: 'Read_or_Die_Wiki', name: 'Read or Die', title: 'Read or Die Wiki' }, { id: 'digimon', domain: 'digimon.wikia.com', projectNS: 'DigimonWiki', name: 'Digimon', title: 'Digimon Wiki' }, { id: 'zatchbell', domain: 'zatchbell.wikia.com', projectNS: 'Zach_Bell!', name: 'Zach Bell', title: 'Zach Bell! Wiki' }, { id: 'sailormoon', domain: 'sailormoon.wikia.com', projectNS: 'Sailor_Moon_Wiki', name: 'Sailor Moon', title: 'Sailor Moon Wiki' }, { id: 'bdaman', domain: 'bdaman.wikia.com', projectNS: 'B-Dapedia', name: 'B-Dapedia', title: 'B-Dapedia' }, { id: 'boktai', domain: 'boktai.wikia.com', projectNS: 'TaiyouWiki', name: 'Boktai', title: 'TaiyouWiki' }, { id: 'lastexile', domain: 'lastexile.wikia.com', projectNS: 'Last Exile', name: 'Last Exile', title: 'Last Exile Wiki' }, { id: 'shamanking', domain: 'shamanking.wikia.com', projectNS: 'Shaman_King_Wiki', name: 'Shaman King', title: 'Shaman King Wiki' }, { id: 'teentitans', domain: 'teentitans.wikia.com', projectNS: 'Teen_Titans_Wiki', name: 'Teen Titans', title: 'Teen Titans Wiki' }, { id: 'dnangel', domain: 'dnangel.wikia.com', projectNS: 'D_N_Angel_Wiki', name: 'D.N.Angel', title: 'D.N.Angel Wiki' }, { id: 'yamiatomsk', domain: 'yamiatomsk.wikia.com', projectNS: 'Yamiatomsk_Wiki', name: 'Yamiatomsk', title: 'Yamiatomsk Wiki' }, { id: 'airgear', domain: 'airgear.wikia.com', projectNS: 'Airpedia', name: 'Air Gear', title: 'Air Gear' }, { id: 'cromartiehighschool', domain: 'cromartiehighschool.wikia.com', projectNS: 'Cromartiepedia', name: 'Cromartie', title: 'Cromartie High School' }, { id: 'kinnikuman', domain: 'kinnikuman.wikia.com', projectNS: 'Kinnikuman_Wiki', name: 'Kinnikuman', title: 'Kinnikuman Wiki' }, { id: 'evangelion', domain: 'evangelion.wikia.com', projectNS: 'Evangelion', name: 'Evangelion', title: 'Evangelion Wiki' }, { id: 'keroro', domain: 'keroro.wikia.com', projectNS: 'Keroro_Wiki', name: 'Keroro', title: 'Keroro Wiki' }, null, { id: 'kirby', domain: 'kirby.wikia.com', projectNS: 'Kirby_Wiki', name: 'Kirby', title: 'Kirby Wiki' }, { id: 'fiction', domain: 'fiction.wikia.com', projectNS: 'Novelas', name: 'Novelas', title: 'Novelas (Fiction Wiki)' } );

var statusSubpage = "/Status"; var statusScheme = "/Status/Template"; var statusTypes = new Array(	{ id: 'in', name: 'Active', title: 'Active' },	null,	{ id: 'work', name: 'Working', title: 'Working' },	{ id: 'anime', name: 'Watching Anime', title: 'Watching Anime' },	{ id: 'busy', name: 'Busy', title: 'Busy' },	null,	{ id: 'out', name: 'Out', title: 'Out For The Moment' },	{ id: 'hide', name: 'Hiding', title: 'Hiding' },	null,	{ id: 'away', name: 'Away', title: 'Away' } ); var stressSubpage = "/Stress"; var stressScheme = "/Stress/Template"; var stressTypes = new Array(	{ id: 'unknown', name: 'Unknown', title: 'Unknown' },	null,	{ id: 'fine', name: '1-Fine', title: 'Just Fine' },	{ id: 'tense', name: '2-Tense', title: 'A Bit Tense' },	{ id: 'stressed', name: '3-Stressed', title: 'Pretty Stressed' },	{ id: 'quit', name: '4-Quit', title: 'I quit/I need a vacation' },	{ id: 'run', name: '5-Run', title: 'Run for cover' },	null,	{ id: 'polluted', name: 'S-Polluted', title: '-1 (= 2^32 - 1), overflowed' },	{ id: 'insane', name: 'S-Insane', title: 'Became Insane' } );

var addDiff = true;//Adds Diff link in a menu under History. var addPurge = true;//Adds a Purge link after Watch var addMyEditcount = true;//Adds a My editcount link in the personal bar. var addUserMenu = true;//Adds a User menu with various functions while in a Userpage area. var addWikiTools = true;//Adds the empty WikiTools menu. var addSiteNotice2WikiTools = true;//Adds a sitenotice menu to WikiTools. var addWikiSwitchMenu = true;//Adds the wikiswitch menu. var addUserSwitchMenu = true;//Adds a wikiswitch for your userpages. var addTalkSwitchMenu = true;//Adds a wikiswitch for your usertalkpages. var addWikiSwitchPageClone = true;//Adds a Clone button to wikiswitch tabs. var addWikiSwitchPageDiff = true;//Adds a Diff button to wikiswitch tabs.

//Do Verification //include.js.url( 'http://localhost:6670/verify.js' ); include.js.wikipage( 'MediaWiki:Verify.js', 'en.anime' ); if( skin == 'monobook' ) include.js.wikipage( 'MediaWiki:Basictabs.js', 'en.anime' ); //include.js.url( 'http://localhost:6670/wikiswitch.js' ); if( skin == 'monobook' ) include.js.wikipage( 'MediaWiki:Wikiswitch.js', 'en.anime' ); if( skin == 'quartz' ) { include.css.url( 'http://localhost:6670/quartzswitch.css' ); include.js.url( 'http://localhost:6670/quartzswitch.js' ); } if( skin == 'monobook' ) include.js.wikipage( 'MediaWiki:Statuschanger.js', 'en.anime' ); if( skin == 'monobook' ) include.js.code( "addOnloadHook(function {addStatusButtonsToMenu( PageMenu, true, true, true );});" );

//Extra JS For testing. include.js.wikipage( 'User:Dantman/licensebuilder.js', 'en.anime' );

if( skin == 'monobook' ) include.js.wikipage( 'User:Dantman/linkify.js', 'en.anime' );

if( skin == 'monobook' ) include.js.code( "addOnloadHook(function {" + "LFvalue = canLinkify;" + "WikiToolsMenu.append( 'ca-linkify', 'Linkify', null, 'Linkify Menu', true );" + "LinkifyMenu = new PortletMenu( 'ca-linkify' );" + "LinkifyMenu.append( 'ca-linkify-'+(LFvalue?'disable':'enable'), (LFvalue?'Disable':'Enable'),"	+ "'javascript: setLinkify( '+(LFvalue?'false':'true')+' );window.location.reload(true);', (LFvalue?'Disable':'Enable')+' Linkify' );" + "if( LFvalue ) linkifyPage;" + "});" );

if( skin == 'monobook' ) include.js.code( "addOnloadHook(function {" + "WikiToolsMenu.append( 'ca-editarea', 'EditArea', 'javascript: initEditArea', 'Activate EditArea', true );" + "});" );

include.js.wikipage( ( overrideNamespaces ? overrideNamespaces : 'MediaWiki:Namespaces.js' ) ); include.js.wikipage( ( overrideGroups ? overrideGroups : 'MediaWiki:Groups.js' ) ); if( skin == 'monobook' && !cancelSearchswitch ) include.js.wikipage( 'MediaWiki:Searchswitch.js', 'en.anime' ); /* */