User:CSteipp (WMF)/Training/VulnTagging js

WARNING: This is a vulnerable script for training only. Don't use it!


function vTagAddEditLinks() {
	var list = $('#vuln-tag-list');
        if ( list.length ) {
		list.html( list.html() + '<a href="Special:EditPageTags/' + list.attr('class') + '">Edit Tags</a>' );
        }
}

addOnloadHook(vTagAddEditLinks);