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

Content deleted Content added
Simple edit redirect script - See User:BrandonXLF/NoRedirect.js
 
No edit summary
Line 1:
 
$(function() { $('#mw-content-text .mw-redirect').after(function() { return this.href.indexOf('redirect=no') !== -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) + ' (noedit redirect)"><sup>(→)</sup></a>'; }); });