+Inoreader

    @@ -1,20 +1,23 @@ /* * @title +Inoreader - * @description subscribe to feed on Inoreader + * @description subscribe to feed in Inoreader * @include http://* * @include https://* - * @license MIT License http://opensource.org/licenses/MIT + * @contributor noromanba http://let.hatelabo.jp/noromanba/let/gYC-x-_E8PL0OA + * @license MIT License http://opensource.org/licenses/MIT * @javascript_url */ -(function () { - var query = [ - 'link[href][rel=alternate][type^="application/atom"]', - 'link[href][rel=alternate][type^="application/rss"]' - ].join(','); - var feed = document.querySelector(query); +(() => { + 'use strict'; + + const feed = document.querySelector([ + 'link[href][rel=alternate][type^="application/atom"]', + 'link[href][rel=alternate][type^="application/rss"]', + ]); if (!feed) return; - var reader = 'https://inoreader.com/?add_feed='; - location.href = reader + encodeURIComponent(feed.href); + const reader = 'https://inoreader.com/?add_feed='; + window.open(reader + encodeURIComponent(feed.href)); })(); +
  • /*
     * @title +Inoreader
     * @description subscribe to feed in Inoreader
     * @include http://*
     * @include https://*
     * @contributor noromanba   http://let.hatelabo.jp/noromanba/let/gYC-x-_E8PL0OA
     * @license MIT License     http://opensource.org/licenses/MIT
     * @javascript_url
     */
    
    (() => {
        'use strict';
    
        const feed = document.querySelector([
            'link[href][rel=alternate][type^="application/atom"]',
            'link[href][rel=alternate][type^="application/rss"]',
        ]);
        if (!feed) return;
    
        const reader = 'https://inoreader.com/?add_feed=';
        window.open(reader + encodeURIComponent(feed.href));
    })();
    
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2017/02/20 04:31:42 - 2017-02-20
  2. 2014/09/30 04:01:39 - 2014-09-30
  3. 2014/09/30 03:58:24 - 2014-09-30