N embed lv***

  • /*
     * @title N embed lv***
     * @description prompt embed nicolive links
     * @include http://*
     * @include https://*
     * @contributor noromanba   http://let.hatelabo.jp/noromanba/let/hLHX7brC65o4 (Fork of)
     * @license MIT License http://opensource.org/licenses/MIT
     * @javascript_url
     */
    
    (function () {
        var url = [].map.call(document.querySelectorAll('iframe[src^="http://live.nicovideo.jp/embed/lv"]'), function (iframe) {
            var url = new URL(iframe.src);
            return 'http://live.nicovideo.jp/' + url.pathname.split('/').pop();
        }).join(' ');
    
        window.prompt('lv***(s)', url);
    })();
    
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2015/08/27 05:32:27 - 2015-08-27
  2. 2015/08/27 05:31:04 - 2015-08-27