diamond.jp redirect to print page

    @@ -1,6 +1,8 @@ /* * @title diamond.jp redirect to print page * @include http://diamond.jp/articles/-/* + * @contributor taizooo http://let.hatelabo.jp/taizooo/let/hLHUksb6l-tU (Fork of) + * @contributor noromanba */ (function () { @@ -8,8 +10,10 @@ a = location.pathname.split('/'); b = a.map(function (x) { return x.replace(/-/, 'print') - }) + }); c = b.join('/'); location.pathname = c; -})() - +})(); +// supply ";" for avoid "SyntaxError: Unexpected identifier" when use as Bookmarklet +// - Debuglet -> ok +// - Bookmarklet -> ng, semicolon ploblem on packed code
  • /*
     * @title diamond.jp redirect to print page
     * @include http://diamond.jp/articles/-/*
     * @contributor taizooo   http://let.hatelabo.jp/taizooo/let/hLHUksb6l-tU (Fork of)
     * @contributor noromanba 
     */
    
    (function () {
    	var a, b, c;
    	a = location.pathname.split('/');
    	b = a.map(function (x) {
    		return x.replace(/-/, 'print')
    	});
    	c = b.join('/');
    	location.pathname = c;
    })();
    // supply ";" for avoid "SyntaxError: Unexpected identifier" when use as Bookmarklet
    // - Debuglet    -> ok
    // - Bookmarklet -> ng, semicolon ploblem on packed code
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2013/09/26 01:52:08 - 2013-09-26
  2. 2013/09/26 01:29:39 - 2013-09-26
  3. 2013/09/26 01:16:45 - 2013-09-26