GoogleReader+まるごとRSS

  • /*
     * @title GoogleReader+まるごとRSS
     * @description my bookmarklet
     * @include http://*
     * @license MIT License
     * @require 
     */
    
    
    (function(){
        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"))){
                window.open('http://www.google.com/reader/view/feed/http://mrss.dokoda.jp/analyze/?url=' + encodeURIComponent(el[i].href), '_blank');
                flag = true;
            }
        }
        if (!flag){
           location.href = 'http://www.google.com/reader/view/feed/http://mrss.dokoda.jp/analyze/?url=' + location.href;
        }
    })();
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2012/09/23 20:06:53 - 2012-09-23
  2. 2012/09/23 20:03:29 - 2012-09-23
  3. 2012/09/23 20:03:13 - 2012-09-23