User:Gryllida/gadgets/frinkle.js

mw.loader.using(['mediawiki.api'], function {

var link = mw.util.addPortletLink(mw.config.get('skin') === 'vector' ? 'p-views' : 'p-cactions',	'javascript:void(0);', 'Speedy', 'p-gryllida-speedy', 'Submit articles for speedy deletion using Speedy', '6' );

link.addEventListener('click', function (ev) {	alert('hi'); }, false);

});