まるごとRSS+Googleリーダー

    @@ -1,6 +1,6 @@ /* - * @title bookmarklet - * @description my bookmarklet + * @title まるごとRSS+Googleリーダー + * @description RSSのリンクを探してまるごとRSSのURLをGoogleリーダーに登録 * @include http://* * @license MIT License * @require
  • /*
     * @title まるごとRSS+Googleリーダー
     * @description RSSのリンクを探してまるごとRSSのURLをGoogleリーダーに登録
     * @include http://*
     * @license MIT License
     * @require 
     */
      var el=document.getElementsByTagName("link");
      var flag=false;
      for(i=0;i<el.length;i++){
        if(!flag&&el[i].getAttribute("rel")=="alternate"&&/(xml|rss)/.test(el[i].getAttribute("type"))){
          var t=el[i].href.split("/");
          t.shift();
          window.open('http://www.google.com/reader/view/feed/http://mrss.dokoda.jp/a/http'+t.join("/"),'_blank');
          flag=true;
        }
      }
      if(!flag){
        var t=location.href.split("/");
        t.shift();
        window.open('http://www.google.com/reader/view/feed/http://mrss.dokoda.jp/a/http'+t.join("/"),'_blank');
      }
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2011/01/07 16:50:41 - 2011-01-07
  2. 2011/01/07 16:49:50 - 2011-01-07