User:ElijahPepe/common.js

(function ($, mw) {   'use strict';

$(function {    	if (mw.config.get('wgPageName').toLowerCase.indexOf("-class_articles") !== -1) {    		return;    	}    	if (!$('.mw-category-group ul li') || mw.config.get('wgPageName').toLowerCase.indexOf("-class") === -1) {    		return;    	}        for (var i = 0; i < $('.mw-category-group ul li').length; i++) {        	if ($('.mw-category-group ul li a').eq(i).attr('href').includes('Category:')) {        		continue;        	}

if ($('.mw-category-group ul li a').eq(i).attr('href').includes('File_talk:')) { $('.mw-category-group ul li a').eq(i).attr('title', "File:" + $('.mw-category-group ul li a').eq(i).attr('title').slice(10)); $('.mw-category-group ul li a').eq(i).text("File:" + $('.mw-category-group ul li a').eq(i).text.slice(10)); $('.mw-category-group ul li a').eq(i).attr('href', '/wiki/' + $('.mw-category-group ul li a').eq(i).attr('title')); } else { $('.mw-category-group ul li a').eq(i).attr('title', $('.mw-category-group ul li a').eq(i).attr('title').slice(5)); $('.mw-category-group ul li a').eq(i).text($('.mw-category-group ul li a').eq(i).text.slice(5)); $('.mw-category-group ul li a').eq(i).attr('href', '/wiki/' + $('.mw-category-group ul li a').eq(i).attr('title')); }		}   }); }(jQuery, mediaWiki)); importScript('User:Novem Linguae/Scripts/CiteHighlighter.js'); // Backlink: User:Novem Linguae/Scripts/CiteHighlighter.js importScript('User:Kaniivel/RefConsolidate_start.js'); // Backlink: User:Kaniivel/RefConsolidate_start.js mw.loader.load( '//de.wikipedia.org/w/index.php?title=Benutzer:TMg/autoFormatter.js&action=raw&ctype=text/javascript' ); importScript('User:Ohconfucius/dashes.js'); // Backlink: User:Ohconfucius/dashes.js importScript('User:Trappist the monk/HarvErrors.js'); // Backlink: User:Trappist the monk/HarvErrors.js importScript('User:Novem_Linguae/Scripts/GANReviewTool.js'); // Backlink: User:Novem_Linguae/Scripts/GANReviewTool.js