User:RheingoldRiver/common.js

( function {	'use strict';	var $changeList = $( '.mw-changeslist' );       var $catList = $('.mw-category-generated');	if ( !$changeList.length && !$catList.length) {		return;	}	mw.loader.using( 'mediawiki.util' ).then( function { $changeList.find( '.mw-title' ).each( function {			var title = $( this ).find( '.mw-changeslist-title' ).attr( 'title' );			if ( title ) {				$( '' ).addClass( 'rc-editlink' ).attr( { href: mw.util.getUrl( title, { action: 'edit' } ), title: 'Edit this page' } ).text( ' ✎' ).insertAfter( this );			}		} ); $catList.find('.mw-category-group ul li a').each(function {                       var title = $(this).text;                        if (title) {                                $('').addClass('cat-editlink').attr( { href: mw.util.getUrl(title, { action: 'edit' }), title: 'Edit this page' }).text(' ✎').insertAfter(this);                       }                }); } ); } );