Created
October 4, 2009 06:04
-
-
Save mori-dev/201185 to your computer and use it in GitHub Desktop.
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
// KeySnail ではてなダイアリー用のリンクを生成してクリップボードへ。 | |
// see http://sheephead.homelinux.org/2009/09/27/1604/ | |
key.setViewKey('U', function () { | |
var w = window._content; | |
var d = w.document; | |
var txt = '[' + d.location.href + ':title=' + d.title + ']'; | |
const CLIPBOARD = Components.classes["@mozilla.org/widget/clipboardhelper;1"].getService(Components.interfaces.nsIClipboardHelper); | |
CLIPBOARD.copyString(txt); | |
}, 'はてな記法のリンク生成'); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment