Go RFC

    @@ -1,14 +1,20 @@ /* * @title Go RFC - * @description URLのRFCっぽい文字列を探してIETFのHTMLページに移動します。txtページや日本語訳から原文のHTML版に移動できます。 - * @include http://www.ietf.org/rfc/* + * @description URLのRFCっぽい文字列を探してIETFのHTMLページに移動します。txtページや日本語訳から原文のHTML版に移動できます。HTMLページで実行するとRFC 番号 日本語 でGoogle検索します。 + * @include http://* * @license MIT License * @require */ (function(){ var url = location.href; -var m = (/rfc[^\d]?(\d+)/.exec(url)||[])[1]; +var m = (/http:\/\/tools\.ietf\.org\/html\/rfc(\d+)/.exec(url)||[])[1]; +if (m) { + location.href = "http://www.google.co.jp/search?q=RFC+1234+%E6%97%A5%E6%9C%AC%E8%AA%9E&ie=utf-8&oe=utf-8"; + return; +} + +m = (/rfc[^\d]?(\d+)/.exec(url)||[])[1]; if (m) { location.href = "http://tools.ietf.org/html/rfc" + m; }
  • /*
     * @title Go RFC
     * @description URLのRFCっぽい文字列を探してIETFのHTMLページに移動します。txtページや日本語訳から原文のHTML版に移動できます。HTMLページで実行するとRFC 番号 日本語 でGoogle検索します。
     * @include http://*
     * @license MIT License
     * @require 
     */
    (function(){
    
    var url = location.href;
    var m = (/http:\/\/tools\.ietf\.org\/html\/rfc(\d+)/.exec(url)||[])[1];
    if (m) {
      location.href = "http://www.google.co.jp/search?q=RFC+1234+%E6%97%A5%E6%9C%AC%E8%AA%9E&ie=utf-8&oe=utf-8";
      return;
    }
    
    m = (/rfc[^\d]?(\d+)/.exec(url)||[])[1];
    if (m) {
      location.href = "http://tools.ietf.org/html/rfc" + m; 
    }
    
    })();
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2012/02/17 04:09:28 - 2012-02-17
  2. 2012/02/17 04:04:32 - 2012-02-17
  3. 2012/02/17 04:03:55 - 2012-02-17
  4. 2012/02/17 04:01:33 - 2012-02-17
  5. 2012/02/15 23:54:39 - 2012-02-15
  6. 2012/02/15 23:51:18 - 2012-02-15
  7. 2012/02/15 23:42:23 - 2012-02-15
  8. 2012/02/15 23:42:14 - 2012-02-15
  9. 2012/02/15 23:40:55 - 2012-02-15
  10. 2012/02/15 23:38:02 - 2012-02-15