User:Dantman/global.config.js

/* */

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

statusChangeAt = new Array( 'anime.wikia.com' ); stressChangeAt = new Array( 'anime.wikia.com' );

if( wgDB != "communitytest" ) {

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: 'Central Wikia', 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: 'anime.wikia.com', projectNS: 'Animepedia', name: 'Animepedia', title: 'The English Animepedia', interwiki: 'Anime:' }, null, { id: 'manga', domain: '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: 'sailormoon', domain: 'sailormoon.wikia.com', projectNS: 'Sailor_Moon_Wiki', name: 'Sailor Moon', title: 'Sailor Moon 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: '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' }, { id: 'eurekaseven', domain: 'eurekaseven.wikia.com', projectNS: 'Eureka_Seven_Wiki', name: 'Eureka Seven', title: 'Eureka Seven Wiki' }, { id: 'codegeass', domain: 'codegeass.wikia.com', name: 'Code Geass', title: 'Code Geass Wiki' }, { id: 'clamp', domain: 'clamp.wikia.com', projectNS: 'CLAMP_Wiki', name: 'CLAMP', title: 'CLAMP Wiki' }, { id: 'ranma', domain: 'ranma.wikia.com', projectNS: 'Ranma_Wiki', name: 'Ranma', title: 'Ranma 1/2 Wiki' }, { id: 'fruitsbasket', domain: 'fruitsbasket.wikia.com', projectNS: 'Fruits_Basket_Wiki', name: 'Fruits Basket', title: 'Fruits Basket Wiki' }, { id: 'lovehina', domain: 'lovehina.wikia.com', projectNS: 'Love_Hina_Wiki', name: 'Love Hina', title: 'Love Hina Wiki' }, { id: 'devilmaycry', domain: 'devilmaycry.wikia.com', projectNS: 'Devil_May_Cry_Wiki', name: 'Devil May Cry', title: 'Devil May Cry Wiki' }, { id: 'doraemon', domain: 'doraemon.wikia.com', projectNS: 'Doraemon_Wiki', name: 'Doraemon', title: 'Doraemon Wiki' }, { id: 'cowboybebop', domain: 'cowboybebop.wikia.com', projectNS: 'Cowboy_Bebop_Wiki', name: 'Cowboy Bebop', title: 'Cowboy Bebop Wiki' }, { id: 'haruhi', domain: 'haruhi.wikia.com', projectNS: 'Haruhi_Wiki', name: 'Haruhi', title: 'The Melancholy of Haruhi Suzumiya Wiki' }, { id: 'escaflowne', domain: 'escaflowne.wikia.com', projectNS: 'Visions_of_Escaflowne_Wiki', name: 'Escaflowne', title: 'Visions of Escaflowne Wiki' }, { id: 'codenamesailorv', domain: 'codenamesailorv.wikia.com', projectNS: 'CodeName_Sailor_V_Wiki', name: 'Sailor V', title: 'CodeName Sailor V Wiki' }, { id: 'seikai', domain: 'seikai.wikia.com', projectNS: 'The_World_of_Seikai', name: 'Seikai', title: 'The World of Seikai Wiki' }, { id: 'shugochara', domain: 'shugochara.wikia.com', projectNS: 'Shugo_Chara_Wiki', name: 'Shugo Chara', title: 'Shugo Chara Wiki' }, { id: 'mai', domain: 'mai.wikia.com', projectNS: 'Mai-HiME_Wiki', name: 'Mai-HiME', title: 'Mai-HiME Wiki' }, { id: 'caseclosed', domain: 'caseclosed.wikia.com', projectNS: 'Case_Closed_wiki', name: 'Case Closed', title: 'Case Closed wiki' }, { id: 'negima', domain: 'negima.wikia.com', name: 'Negima', title: 'Negima Wiki' }, { id: 'desertpunk', domain: 'desertpunk.wikia.com', projectNS: 'Desert_Punk_Wiki', name: 'Desert Punk', title: 'Desert Punk Wiki', mainpage: 'Desert_Punk_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.

if( wgDB != "communitytest" ) { //Do Verification //include.js.url( 'http://localhost:6670/verify.js' ); include.js.wikipage( 'MediaWiki:Verify.js', 'anime' ); //include.js.url( 'http://localhost:6670/switchlib.js' ); include.js.wikipage( 'WikiSwitch/switchlib.js', 'dev' ); if( skin == 'monobook' ) include.js.wikipage( 'MediaWiki:Basictabs.js', 'anime' ); //include.js.url( 'http://localhost:6670/wikiswitch.js' ); if( skin == 'monobook' ) include.js.wikipage( 'MediaWiki:Wikiswitch.js', 'anime' ); if( skin == 'quartz' ) { include.css.url( 'http://localhost:6670/quartzswitch.css' ); include.js.url( 'http://localhost:6670/quartzswitch.js' ); } else if( skin == 'monaco' ) { //	include.js.url( 'http://localhost:6670/wikiajump.js' ); //	include.css.url( 'http://localhost:6670/wikiajump.css' ); include.js.wikipage( 'WikiSwitch/wikiajump.js', 'dev' ); include.css.wikipage( 'WikiSwitch/wikiajump.css', 'dev' ); } }

//include.js.url( 'http://localhost:6670/jquery-1.2.3.js' ); //include.js.url( 'http://localhost:6670/activerc.js' );

if( skin == 'monobook' ) include.js.wikipage( 'MediaWiki:Statuschanger.js', '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', 'anime' );

if( skin == 'monobook' ) include.js.wikipage( 'User:Dantman/linkify.js', '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', 'anime' ); /* */