link.md
by
noromanba
2013-01-29 [2013/01/29 07:35:37]
(Forked from
mkdlink by
jdg)
prompt Markdown inline link
@@ -8,5 +8,8 @@
* @see http://daringfireball.net/projects/markdown/syntax (Markdown official syntax)
*/
-// not screen transition when press 'OK'
-prompt('link.md', '[' + document.querySelector('title').textContent + '](' + location.href + ')'); void 0;
+[Changes]
+// + not screen transition when press 'OK'
+// + allow title cf. https://api.github.com/gists/2370972
+
+prompt('link.md', '[' + document.title + '](' + location.href + ')'); void 0;
/*
* @title link.md
* @description 閲覧ページのMarkdown inline linkをprompt(Forked)
* @include http://*
* @license MIT License
* @require
* @see http://let.hatelabo.jp/jdg/let/gYC-xdO5tsuJfQ (Fork of, id:jdg)
* @see http://daringfireball.net/projects/markdown/syntax (Markdown official syntax)
*/
[Changes]
// + not screen transition when press 'OK'
// + allow title cf. https://api.github.com/gists/2370972
prompt('link.md', '[' + document.title + '](' + location.href + ')'); void 0;
- Permalink
- このページへの個別リンクです。
- RAW
- 書かれたコードへの直接のリンクです。
- Packed
- 文字列が圧縮された書かれたコードへのリンクです。
- Userscript
- Greasemonkey 等で利用する場合の .user.js へのリンクです。
- Loader
- @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
- Metadata
- コード中にコメントで @xxx と書かれたメタデータの JSON です。