↺ Gist
by
noromanba
2012-05-02 [2012/05/02 06:44:48]
Turn back to gist from raw
/*
* @title ↺ Gist
* @description Turn back to gist from raw
* @include https://raw.github.com/gist/*
* @license MIT License http://nrm.mit-license.org/
* @require
*/
(function () {
var id = (/^https:\/\/raw\.github\.com\/gist\/(\d+)/.test(location.href) || [])[1];
if (!id) return;
location.href = 'https://raw.github.com/gist/' + id;
})();
- Permalink
- このページへの個別リンクです。
- RAW
- 書かれたコードへの直接のリンクです。
- Packed
- 文字列が圧縮された書かれたコードへのリンクです。
- Userscript
- Greasemonkey 等で利用する場合の .user.js へのリンクです。
- Loader
- @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
- Metadata
- コード中にコメントで @xxx と書かれたメタデータの JSON です。