Javascript bookmarklet to delete first publication from CCV web form

Alec Jacobson

June 17, 2016

weblog/

The Canadian Common CV webform failed to upload my publications correctly. But it doesn't allow batch deletion of items so to delete each one at a time I'd have to click the little trash can and click "Yes" and then the page reloads. To avoid this I wrote a little javascript bookmarklet:

eval($("img[alt^=Delete]")[0].getAttribute('onclick').replace('preventBubbling(event);askDeleteBefore','processSubmit').replace('return false;',''))