User:Phillycj/global.js

/* change wiki activity to recent changes */ function WikiActivity2RecentChanges { $('.wikia-button[data-id$="wikiactivity"]').replaceWith('Recent Changes'); } //Custom shiny edit buttons if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images2.wikia.nocookie.net/__cb20100502153339/callofduty/images/1/17/Button_Ssig.jpg", "speedTip": "Signature", "tagOpen": "{" + "{Sig/Phil}} ~"+""+"", "tagClose": "", "sampleText": "" };   mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/__cb20100304205745/callofduty/images/0/03/Al-Asad.jpg", "speedTip": "Speedy delete: spam", "tagOpen": "{" + "{Sdelete"+"|Spam/nonsense.}}", "tagClose": "", "sampleText": "" };   mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/__cb20100304205745/callofduty/images/0/03/Al-Asad.jpg", "speedTip": "Speedy delete: unnecessary", "tagOpen": "{" + "{Sdelete"+"|Not notable/unnecessary.}}", "tagClose": "", "sampleText": "" };   mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/__cb20100304205745/callofduty/images/0/03/Al-Asad.jpg", "speedTip": "Speedy delete: other reason", "tagOpen": "{" + "{Sdelete|", "tagClose": "", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://i.imgur.com/JyxKu.png", "speedTip": "Vandalism", "tagOpen": "{" + "{Vandalism"+"|| ~"+""+"}}", "tagClose": "", "sampleText": "" };   mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://i.imgur.com/p0q2A.png", "speedTip": "Needs Images", "tagOpen": "{" + "{Needsimages}}", "tagClose": "", "sampleText": "" };   mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://i.imgur.com/E1B5s.png", "speedTip": "Better Images", "tagOpen": "{" + "{Betterimage}}", "tagClose": "", "sampleText": "" };   mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://i.imgur.com/JWF5u.png", "speedTip": "Bad Page", "tagOpen": "{" + "{Bad Page|", "tagClose": "| ~"+""+"}}", "sampleText": "" };   mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://i.imgur.com/aeMxa.png", "speedTip": "Lag Ban", "tagOpen": "{" + "{Lagbanned|", "tagClose": " ~"+""+"}}", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://i.imgur.com/3EIiM.png", "speedTip": "Global Page", "tagOpen": "{" + "{w:User:Phillycj}}", "tagClose": "", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://i.imgur.com/i5ae1.png", "speedTip": "Speculation", "tagOpen": "{" + "{speculation|Call of Duty: Black Ops II}}", "tagClose": "", "sampleText": "" }; }

//End custom shiny edit buttons

/* kill image popups */ window.wgEnableImageLightboxExt = false; $(function changeimagelinks {	$('#WikiaArticle, .LatestPhotosModule, #article-comments').unbind('click.lightbox');

var a = document.getElementsByTagName('a'); for(var t = 0; t < a.length; ++t) { var a2 = a[t]; var img = a2.getElementsByTagName('img'); if(img[0] != null) { if (a2.href.indexOf('images.wikia.com') != -1) { var link = wgServer + '/wiki/File:' + a2.href.substring(a2.href.lastIndexOf('/') + 1); a2.setAttribute('href',link); }		}	} });