link.md

    @@ -8,10 +8,14 @@ * @see http://daringfireball.net/projects/markdown/syntax (Markdown official syntax) */ -// [Changes] +// # Changes // + not screen transition when press 'OK' // + allow no title cf. https://api.github.com/gists/2370972 -var title = prompt('Edit Title', document.title) || location.href; +var isEdit = true; +var title = (function() { + return isEdit ? prompt('Edit Title', document.title) || location.href + : document.title || location.href; +})(); prompt('Copy Me', '[' + 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 no title cf. https://api.github.com/gists/2370972
    
    var isEdit = true;
    var title = (function() {
        return isEdit ? prompt('Edit Title', document.title) || location.href
            : document.title || location.href;
    })();
    prompt('Copy Me', '[' + title + '](' + location.href + ')');
    void 0;
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2013/01/29 07:35:37 - 2013-01-29
  2. 2012/04/15 04:24:11 - 2012-04-15
  3. 2012/04/15 04:05:04 - 2012-04-15
  4. 2012/04/15 03:50:34 - 2012-04-15
  5. 2012/04/15 03:34:53 - 2012-04-15
  6. 2012/04/13 19:08:13 - 2012-04-13
  7. 2012/04/13 18:46:05 - 2012-04-13