Skip to content

Instantly share code, notes, and snippets.

@durron597
Last active September 23, 2015 15:17
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save durron597/c53a623610c81b7b83a5 to your computer and use it in GitHub Desktop.
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