CV Please bookmarklet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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