User:Noreplyz/common.js

// OTHER SCRIPTS importScriptURI('http://josephhawk.wikia.com/index.php?title=User:Josephyr/file.js&action=raw&ctype=text/javascript'); importScriptURI('http://noreply.wikia.com/index.php?title=User:Noreplyz/userpagetemplate.js&action=raw&ctype=text/javascript'); importScriptURI('http://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("http://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('http://internal-community.wikia.com/index.php?title=MediaWiki:BlogReport.js&action=raw&ctype=text/javascript'); importScriptURI('http://internal.community.wikia.com/index.php?title=MediaWiki:ChatConnect.3.js&action=raw&ctype=text/javascript'); importScriptPage('MediaWiki:MassRename/code.js', 'dev'); importScriptPage("MediaWiki:Torus.js","monchbox");

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

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

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