B!

    @@ -9,6 +9,11 @@ * @require */ -// remove escape() for i18n e.g. http://ja.uncyclopedia.info/wiki/%E7%9B%A5%E5%9B%9E%E3%81%97 -window.open('http://b.hatena.ne.jp/entry/' + location.href, '_blank'); -void 0; +(function () { + // canonicalize for https; e.g. https://www.youtube.com/watch?v=OKOrkLxOBoY + //* + var url = (document.head.querySelector('link[href][rel=canonical]') || {}).href || location.href; + //*/ + + window.open('http://b.hatena.ne.jp/entry/' + url, '_blank'); +})();
  • /*
     * @title B!
     * @description open Hatena::Bookmark in new tab/window
     * @include http://*
     * @include https://*
     * @contributor dankogai  http://let.hatelabo.jp/dankogai/let/gYC-xpO_j7qpDw (Fork of)
     * @author      noromanba http://let.hatelabo.jp/noromanba/let/gYC-y5_1hrbuWA
     * @license MIT License
     * @require 
     */
    
    (function () {
        // canonicalize for https; e.g. https://www.youtube.com/watch?v=OKOrkLxOBoY
        //*
        var url = (document.head.querySelector('link[href][rel=canonical]') || {}).href || location.href;
        //*/
    
        window.open('http://b.hatena.ne.jp/entry/' + url, '_blank');
    })();
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2017/02/19 18:21:41 - 2017-02-19
  2. 2013/10/17 06:30:59 - 2013-10-17
  3. 2013/10/17 06:27:50 - 2013-10-17
  4. 2013/10/17 05:54:11 - 2013-10-17
  5. 2013/09/26 02:05:28 - 2013-09-26
  6. 2013/05/10 00:57:42 - 2013-05-10
  7. 2013/02/22 09:50:02 - 2013-02-22
  8. 2013/02/22 09:46:23 - 2013-02-22
  9. 2013/02/22 09:43:05 - 2013-02-22
  10. 2013/02/22 09:32:31 - 2013-02-22