User:Arystanbek/SearchEdit.js

From translatewiki.net
Jump to: navigation, search
if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Search' ) {
	$( function() {
		'use strict';
		$( '.mw-search-result-heading a' ).each( function() {
			$( this ).after( '<span class="script-searchedit">[<a href="' + $( this ).attr( 'href' ) + '?action=edit">Өңдеу</a>]</span>' );
		} );
	} );
}