User:Enterprisey/vanarticle-on-abusefilter.js

$( function { if( mw.config.get( "wgPageName" ).indexOf( "Special:AbuseLog/" ) === 0 ) { var link = $( "a.mw-usertoollinks-talk" ).first; link.attr( "href", link.attr( "href" ) + ((link.attr("href").indexOf("?")>=0)?"&":"?") + "vanarticle=" + $( "a" ).filter(function(idx,e){return e.getAttribute("href") && e.getAttribute("href").indexOf('redirect=no')>=0}).text ); } } );