archive

    @@ -1,11 +1,49 @@ /* - * @title page_back - * @description ページ内リンクの履歴をスキップして戻る + * @title archive + * @description 記事一覧を開く * @include http://* * @license CC0 <http://creativecommons.org/publicdomain/zero/1.0/> */ -(function () { - window.addEventListener('hashchange', function (e) { history.back(); }, false); - history.back(); -})(); +(function (url) { + [ + {/* はてなダイアリー・はてなグループ */ + pattern: /^http:\/\/(?:d|[-\w]+\.g)\.hatena\.ne\.jp\/[-\w]+\//, + replace: '$&archive' + }, + {/* はてなブログ */ + pattern: /^http:\/\/[-\w]+\.(?:hatena(?:blog|diary)\.(?:com|jp)|hateblo\.jp)\//, + replace: '$&archive' + }, + {/* FC2ブログ */ + pattern: /^http:\/\/[-\w]+\.blog\d*\.fc2\.com\//, + replace: '$&archives.html' + }, + {/* gooブログ */ + pattern: /^http:\/\/blog\.goo\.ne\.jp\/[-\w]+/, + replace: '$&/arcv' + }, + {/* Yahoo!ブログ */ + pattern: /^http:\/\/blogs\.yahoo\.co\.jp\/[-\w]+/, + replace: '$&/MYBLOG/yblog.html?m=l' + }, + {/* アメーバブログ */ + pattern: /^http:\/\/ameblo\.jp\/[-\w]+/, + replace: '$&/entrylist.html' + }, + {/* 楽天ブログ */ + pattern: /^http:\/\/plaza\.rakuten\.co\.jp\/[-\w]+/, + replace: '$&/diaryall/' + }, + {/* Tumblr */ + pattern: /^http:\/\/[-\w]+\.tumblr\.com\//, + replace: '$&archive' + } + ].some(function (siteinfo) { + var m = siteinfo.pattern.exec(url); + if (m) { + location.href = m[0].replace(siteinfo.pattern, siteinfo.replace); + return true; + } + }); +})(location.href);
  • /*
     * @title archive
     * @description 記事一覧を開く
     * @include http://*
     * @license CC0 <http://creativecommons.org/publicdomain/zero/1.0/>
     */
    
    (function (url) {
        [
            {/* はてなダイアリー・はてなグループ */
                pattern: /^http:\/\/(?:d|[-\w]+\.g)\.hatena\.ne\.jp\/[-\w]+\//,
                replace: '$&archive'
            },
            {/* はてなブログ */
                pattern: /^http:\/\/[-\w]+\.(?:hatena(?:blog|diary)\.(?:com|jp)|hateblo\.jp)\//,
                replace: '$&archive'
            },
            {/* FC2ブログ */
                pattern: /^http:\/\/[-\w]+\.blog\d*\.fc2\.com\//,
                replace: '$&archives.html'
            },
            {/* gooブログ */
                pattern: /^http:\/\/blog\.goo\.ne\.jp\/[-\w]+/,
                replace: '$&/arcv'
            },
            {/* Yahoo!ブログ */
                pattern: /^http:\/\/blogs\.yahoo\.co\.jp\/[-\w]+/,
                replace: '$&/MYBLOG/yblog.html?m=l'
            },
            {/* アメーバブログ */
                pattern: /^http:\/\/ameblo\.jp\/[-\w]+/,
                replace: '$&/entrylist.html'
            },
            {/* 楽天ブログ */
                pattern: /^http:\/\/plaza\.rakuten\.co\.jp\/[-\w]+/,
                replace: '$&/diaryall/'
            },
            {/* Tumblr */
                pattern: /^http:\/\/[-\w]+\.tumblr\.com\//,
                replace: '$&archive'
            }
        ].some(function (siteinfo) {
            var m = siteinfo.pattern.exec(url);
            if (m) {
                location.href = m[0].replace(siteinfo.pattern, siteinfo.replace);
                return true;
            }
        });
    })(location.href);
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2013/09/26 04:22:32 - 2013-09-26
  2. 2013/09/26 04:20:42 - 2013-09-26
  3. 2013/06/11 19:43:45 - 2013-06-11
  4. 2013/06/11 19:16:09 - 2013-06-11
  5. 2013/06/11 18:55:08 - 2013-06-11
  6. 2013/06/11 18:52:20 - 2013-06-11