Skip to content

Instantly share code, notes, and snippets.

@durron597

durron597/cvplease.js

Last active Sep 23, 2015
Embed
What would you like to do?
CV Please bookmarklet
// Add this to your bookmarks manager. Click in when on a page, then Ctrl+C to copy the link and enter to close it.
// this version has no close reason prompt
javascript:(function(){ $tit = $('#question-header h1 a').text(); $('#question .post-menu .short-link').click(); $url = $('.share-tip input').val(); $('.share-tip a.close-share-tip').click(); $result = '[tag:cv-pls] [' + $tit + '](' + $url + ')'; window.prompt("Copy to clipboard: Ctrl+C, Enter", $result); })();
// this version has a close reason prompt
javascript:(function(){ $tit = $('#question-header h1 a').text(); $('#question .post-menu .short-link').click(); $url = $('.share-tip input').val(); $('.share-tip a.close-share-tip').click(); var reason = window.prompt('Reason for closing'); $result = '[tag:cv-pls] ' + reason + ' [' + $tit + '](' + $url + ')'; window.prompt("Copy to clipboard: Ctrl+C, Enter", $result); })();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment