User:Dinoguy1000/scripts/facepalm.js

function facepalm { alert('Facepalm!'); }

$( function {   mw.util.addPortletLink( 'p-cactions', 'javascript:', 'Facepalm', 'ca-facepalm', 'Facepalm', '' ); });