User:Noreplyz/common.js

// OTHER SCRIPTS // When something goes wrong, blame Mime. importScriptURI('//noreply.wikia.com/index.php?title=User:Noreplyz/userpagetemplate.js&action=raw&ctype=text/javascript'); importScriptURI('//noreply.wikia.com/index.php?title=MediaWiki:FileUsage.js&action=raw&ctype=text/javascript'); // File checker if (wgCanonicalSpecialPageName !== 'Wantedpages') { return; }   $(".special li .new").each(function (index) {         var thisItem = this;        $.getJSON("//community.wikia.com/api.php?action=query&format=json&list=backlinks&bltitle=" + encodeURI($( this ).text), function (json) { var fulltext = ''; fulltext = ' '; for (var j = 0; j < json["query"]["backlinks"].length; j++) { var backlink = encodeURI(json["query"]["backlinks"][j]["title"]); fulltext = fulltext + ''+decodeURI(backlink)+'' + ' ' ; console.log(fulltext); }           $(thisItem).after(fulltext); });   }); })(this.jQuery, this.mediaWiki);
 * (function($, mw) {

advancedChatconnectRevisionDelete = true;

importScriptURI('//internal-community.wikia.com/index.php?title=MediaWiki:BlogReport.js&action=raw&ctype=text/javascript');

/* Header links */ function makeCCButton(type) { var ccbutton = cclinks[type]; $('#cclinks').append('' + ccbutton.name + ''); }

cclinks = { deletions: { name: 'CfDs', link: 'https://community.wikia.com/wiki/Category:Candidates_for_speedy_deletion?action=purge' },   maintenance: { name: 'Maintenance', link: 'https://community.wikia.com/wiki/User:Noreplyz/Maintenance' },   forumthread: { name: 'Forums', link: 'https://community.wikia.com/wiki/Special:RecentChanges?tagfilter=New' },   messagewallthreads: { name: 'MWT', link: 'https://community.wikia.com/wiki/Special:RecentChanges?namespace=1201' },   images: { name: 'IMG', link: 'https://community.wikia.com/wiki/Special:RecentChanges?namespace=6' },   ill: { name: 'ILL', link: 'https://community.wikia.com/wiki/Special:RecentChanges?namespace=4' },   welcome: { name: 'WR', link: 'https://community.wikia.com/wiki/Special:RecentChanges?tagfilter=WelcomeReply' } }

$(".wds-community-header__local-navigation").empty.prepend(' '); for (var x in cclinks) { makeCCButton(x); }