Skip to content

Instantly share code, notes, and snippets.

@taizooo
Created July 22, 2010 01:27
Show Gist options
  • Save taizooo/485444 to your computer and use it in GitHub Desktop.
Save taizooo/485444 to your computer and use it in GitHub Desktop.
//hatena_img_copy_avoddq3l.jsa.js
// for http://d.hatena.ne.jp/taizooo+avoddq3l/
CopyImgAndURL();
function CopyImgAndURL() {
const EOL = "\r\n";
var imgObj = _jsaCScript.context.target;
if(imgObj.localName != "img") return;
var docTitle = window.content.document.title;
var docURL = window.content.document.URL;
var imgURL = imgObj.src;
_jsaCScript.setClipBoardString('[' + docURL + ':image=' + imgURL + ']');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment