diamond.jp redirect to print page

  • /*
     * @title diamond.jp redirect to print page
     * @include http://diamond.jp/articles/-/*
     */
    
    (function () {
    	var a, b, c;
    	a = location.pathname.split('/');
    	b = a.map(function (x) {
    		return x.replace(/-/, 'print')
    	})
    	c = b.join('/');
    	location.pathname = c;
    })()
    
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2013/08/19 11:44:26 - 2013-08-19
  2. 2013/08/19 11:37:35 - 2013-08-19