User:Qwerfjkl/scripts/editRedirect.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
 
Line 1:
 
$(function() { $('#mw-content-text .mw-redirect').after(function() { return this.href.indexOf('redirectaction=noedit') !== -1 || this.href.indexOf('action=') !== -1 || this.href.indexOf('diff=') !== -1 ? '' : '<a href="' + this.href + (this.href.includes('?') ? '&' : '?') + 'action=edit" title="' + (this.title || this.href) + ' (edit redirect)"><sup>(→)</sup></a>'; }); });
 
// [[:Category:Wikipedia scripts]]