H!

  • /*
     * @title H!
     * @description Haiku this page
     * @include http://*
     * @include https://*
     * @contributor pmint   http://let.hatelabo.jp/pmint/let/hLHVvMqg8J9L
     * @license MIT License http://opensource.org/licenses/MIT
     * @javascript_url
     */
    
    (function () {
        // canonical
        // http://let.hatelabo.jp/noromanba/let/hLHVzOTQjfYH
        // https://gist.github.com/noromanba/d730ccf3ae5e6916cd60
        var url = (document.head.querySelector('meta[property="og:url"][content]') || {}).content ||
            (document.head.querySelector('link[rel="canonical"][href]') || {}).href ||
            location.href;
    
        location.href = [
            'http://h.hatena.ne.jp/target?word=',
            encodeURIComponent(url),
            '&body=',
            encodeURIComponent(window.getSelection())
        ].join('');
    })();
    
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2015/05/26 04:52:03 - 2015-05-26