ニコニコ動画Zero エコノミー視聴リンク追加

    @@ -6,6 +6,5 @@ */ (function(){ -var o=JSON.parse(document.querySelector('#watchAPIDataContainer').innerHTML); -document.getElementById('siteHeaderInner').innerHTML+='<a href="http://www.nicovideo.jp/watch/'+o.flashvars.videoId+'?eco=1" target="_top" class="siteHeaderGlovalNavigation">エコノミー</a>'; +document.getElementById('siteHeaderInner').innerHTML+='<a href="javascript:void(0);" onclick="location.href=location.href+=\'?eco=1\';" class="siteHeaderGlovalNavigation">エコノミー</a>'; })();
  • /*
     * @title ニコニコ動画Zero エコノミー視聴リンク追加
     * @description ヘッダにリンク増やす Userscript用
     * @include http://www.nicovideo.jp/watch/*
     * @license MIT License
     */
    
    (function(){
    document.getElementById('siteHeaderInner').innerHTML+='<a href="javascript:void(0);" onclick="location.href=location.href+=\'?eco=1\';" class="siteHeaderGlovalNavigation">エコノミー</a>';
    })();
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2012/08/01 22:51:07 - 2012-08-01
  2. 2012/08/01 18:26:57 - 2012-08-01
  3. 2012/08/01 18:16:26 - 2012-08-01