User:Monochromatic Bunny/global.js

$(".message-removed.hide").removeClass("hide");

/* hide logs from Recent Changes var tx1 = 'created a user account'; $('li:contains(' + tx1 + ')').hide;

var tx2 = 'User avatar added or updated'; $('li:contains(' + tx2 + ')').hide; */

/* Zendesk test */ /*<![CDATA[*/window.zEmbed||function(e,t){var n,o,d,i,s,a=[],r=document.createElement("iframe");window.zEmbed=function{a.push(arguments)},window.zE=window.zE||window.zEmbed,r.src="javascript:false",r.title="",r.role="presentation",(r.frameElement||r).style.cssText="display: none",d=document.getElementsByTagName("script"),d=d[d.length-1],d.parentNode.insertBefore(r,d),i=r.contentWindow,s=i.document;try{o=s}catch(c){n=document.domain,r.src='javascript:var d=document.open;d.domain="'+n+'";void(0);',o=s}o.open._l=function{var o=this.createElement("script");n&&(this.domain=n),o.id="js-iframe-async",o.src=e,this.t=+new Date,this.zendeskHost=t,this.zEQueue=a,this.body.appendChild(o)},o.write(''),o.close}("https://assets.zendesk.com/embeddable_framework/main.js","support.wikia-inc.com"); /*]]>*/

$('.button-vet').attr('title', 'Add a video');

var autoFormatWikimediaLinks = false; var autoFormatTemplates = [ { name:  'YouTuber', format: '| _ = _\n', parameters: { 'lcase': false, 'caption': false, 'subscribers': false, } },  { name:   'YouTuber1', format: '| _ = _\n' }, { name:   'Infobox queen', format: '| _ = _\n' }, { name:   'RPDR Infobox', format: '| _ = _\n' }, { name:   'Infobox JavaScript', format: '| _ = _\n', parameters: { 'Image size': false, } },  { name:   'Infobox CSS', format: '| _ = _\n', parameters: { 'Image size': false, } }, ]; mw.loader.load( '//de.wikipedia.org/w/index.php?title=Benutzer:TMg/autoFormatter.js&action=raw&ctype=text/javascript' );

/**    * Name:        Global navbar modifications * Author:     KockaAdmiralac <1405223@gmail.com> * Description: Modifies the global navbar to add useful buttons */   var page = mw.config.get("wgPageName"), globalLinks = { "RC": "Special:RecentChanges", "CSS": "MediaWiki:Wikia.css", "Log off": "Special:UserLogout?returnto=" + page, "Contribs": "Special:Contributions/" + mw.config.get('wgUserName'), "Purge": page + "?action=purge", "QQX": page + "?uselang=qqx", "Raw": page + "?action=raw" }, linksContent = ""; if(mw.config.get("wgCityId") === "177") {       globalLinks = $.extend(globalLinks, {            "AL": "Special:AbuseLog",            "Global JS": "Special:Mypage/global.js",            "Global CSS": "Special:Mypage/global.css"        }); }   else if(mw.config.get("wgCityId") === "769303") globalLinks.AL = "Special:AbuseLog"; for(var prop in globalLinks) linksContent += "" + prop + ""; $(".account-navigation-container").first.before(linksContent);

// Quick Deletion var fdButtons = []; window.fdButtons.push(   {        summary: 'Housekeeping',        label: 'HK'    },    {        summary: 'Vandalism',        label: 'V'    },    {        summary: 'Not enough information',        label: 'NI'    } );

/* credit to kockadmiralac for js */ var regularList = [ 'u:dev:QuickCreateUserPage/code.js', 'u:dev:AjaxRC/code.js', 'u:dev:Rollback/code.js', 'u:dev:FindAndReplace/code.js', 'u:dev:RedirectManagement/code.js', 'u:dev:ListFiles/code.js', 'u:dev:QuickDiff/code.js', 'u:dev:AnchoredRollback/code.js', 'u:dev:AjaxUndo/code.js', 'u:dev:CacheCheck/code.js', 'u:dev:PortableCSSPad/code.js', 'u:dev:SkinSwitchButton/code.js', ], adminList = [ 'u:dev:AjaxBatchDelete/code.2.js', 'u:kocka:AjaxCommentDelete/code.js', 'u:dev:Nuke/code.js', 'u:dev:WHAM/code.2.js', 'u:kocka:AjaxThreadDelete/code.js', 'u:dev:AjaxBlock/code.js', 'u:dev:AjaxPatrol/code.js', 'u:dev:FastDelete/code.js', ];

importArticles({ type: 'script', articles: (regularList.concat((wgUserGroups.includes("sysop") ? adminList : []))) });