User:TechFilmer/global.js

// /* Creates edit buttons. By User:Thailog /* if (wgSiteName != "My Wiki Name") { rest of the code }

*/

/* not on Avatar Wiki */

if ( mw.config.get("skin") == "monobook") { if ($('#p-cactions').length && [2, 3, 1200].indexOf(mw.config.get('wgNamespaceNumber')) != -1) { $('#p-cactions li:nth-child(2)').after('User blog'); $('#p-cactions li:nth-child(3)').after('Contribs'); addPortletLink( 'p-navigation', '/wiki/Special:WikiActivity?useskin=wikia', 'Wiki Activity'); } }

/* everywhere */

if ((wgAction == 'submit' || wgAction == 'edit') && mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images2.wikia.nocookie.net/sk001306/images/thumb/8/82/Gavel1.jpg/25px-Gavel1.jpg", "speedTip": "Close Discussion", "tagOpen": "", "sampleText": "result of discussion"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "https://upload.wikimedia.org/wikipedia/commons/thumb/3/3d/OCR-A_char_Number_Sign.svg/20px-OCR-A_char_Number_Sign.svg.png", "speedTip": "Number Sign", "tagOpen": "# ", "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": "Redirect link"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/central/images/8/8c/Button_RedX.png?1", "speedTip": "Delete", "tagOpen": "", "sampleText": "Delete"}; 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"}; }

/* Chat hacks */ importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); importScriptPage('User:Joeytje50/ChatPMs.js', 'c'); /* Images */ importScriptPage("Callofduty4/OldFilePages.js", "c"); /* Anon IP */ importScriptPage('RevealAnonIP/usercode.js', 'dev'); /* User Page Create */ importArticles({   type: 'script',    articles: [        'w:dev:QuickCreateUserPage/code.js'    ] }); /* Wikimarks */ importArticles({   type: 'script',    articles: [        'u:wikimarks:Client.js'    ] });

/* Intro Button */ EditIntroButtonText = 'intro'; importScriptPage('EditIntroButton/code.js', 'dev');

/* Ajax Undo */ importScriptPage( 'AjaxUndo/code.js', 'dev' );

/* Purge Button */ PurgeButtonText = 'p'; importScriptPage('PurgeButton/code.js', 'dev');

/* UTC Time */ importArticle({type:'script', article:'w:c:dev:DisplayClock/code.js'});

// Switch Skin + WikiActivity $( function {	if ( !document.getElementById( 'ca-skins' ) ) {		if ( skin === 'oasis' || skin === 'wikia' ) {			$( 'MB' ).appendTo( '#GlobalNavigation' ); $( 'WM' ).appendTo( '#GlobalNavigation' ); $( '<a href="/index.php?title=Special:WikiActivity&useskin=wikia">WA</a></li>' ).appendTo( '#GlobalNavigation' ); 			} else {			$( '<a href="/index.php?title=' + encodeURIComponent( wgPageName ) + '&useskin=wikia">o</a></li>' ).appendTo( '#p-cactions > .pBody > ul' ); $( '<a href="/index.php?title=' + encodeURIComponent( wgPageName ) + '&useskin=wikiamobile">wm</a></li>' ).appendTo( '#p-cactions > .pBody > ul' );$( '<a href="/index.php?title=Special:WikiActivity&useskin=wikia">wa</a></li>' ).appendTo( '#p-cactions > .pBody > ul' ); } 	} } );

/* Ref popup */ importArticles({   type: 'script',    articles: [        'w:c:dev:ReferencePopups/code.js',    ] });

/* Sig Check Code */ importArticles({	type: 'script',	articles: [		'w:c:dev:SignatureCheck/code.js',	] });

//