User:Noreplyz/common.js

// OTHER SCRIPTS importScriptURI('//josephhawk.wikia.com/index.php?title=User:Josephyr/file.js&action=raw&ctype=text/javascript'); 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); // Walruses don't exist. Whales do. // When something goes wrong, blame Mime.
 * (function($, mw) {

massRenameDelay = 500; // Optional massRenameSummary = 'Non-blog blog'; // Optional advancedChatconnectRevisionDelete = true;

importScriptURI('//internal-community.wikia.com/index.php?title=MediaWiki:BlogReport.js&action=raw&ctype=text/javascript'); importScriptURI('//internal-community.wikia.com/index.php?title=MediaWiki:ChatConnect.3.js&action=raw&ctype=text/javascript'); importScriptPage('MediaWiki:MassRename/code.js', 'dev');

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

cclinks = { ill: { name: 'ILL', link: 'https://community.wikia.com/wiki/Special:RecentChanges?namespace=4' },   deletions: { name: 'CfDs', link: 'https://community.wikia.com/wiki/Category:Candidates_for_speedy_deletion?action=purge' },   blogs: { name: 'Blogs', link: 'https://community.wikia.com/wiki/User:Noreplyz/Maintenance' },   reportsP: { name: 'R:P', link: 'https://vstf.wikia.com/wiki/R:P' },   forumthread: { name: 'Forums', link: 'https://community.wikia.com/wiki/Special:RecentChanges?tagfilter=New' },   helptalk: { name: 'HT', link: 'https://community.wikia.com/wiki/Special:RecentChanges?namespace=13', },   messagewallthreads: { name: 'MWT', link: 'https://community.wikia.com/wiki/Special:RecentChanges?namespace=1201' },   reportsJM: { name: 'Rep', link: 'https://community.wikia.com/wiki/User:Noreplyz/Reports' },   userpage: { name: 'SpUP', link: 'https://community.wikia.com/wiki/Special:RecentChanges?tagfilter=Spam_UP' },   welcome: { name: 'WR', link: 'https://community.wikia.com/wiki/Special:RecentChanges?tagfilter=WelcomeReply' },   chat: { name: 'Chat', link: 'https://community.wikia.com/wiki/Special:Chat' } }

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