バンブラPの試聴画面に音量変更ボタンを追加する

    @@ -1,6 +1,6 @@ /* * @title バンブラPの試聴画面に音量変更ボタンを追加する - * @description バンブラPの試聴画面に音量変更ボタンを追加する + * @description バンブラPの試聴画面に音量変更ボタンを追加する。(Flash Playerを使用するブラウザでは動作しない。) * @include http://9129suppon.com/music/* * @license MIT License */ @@ -8,7 +8,7 @@ (function(){ var a="document.getElementById('musicPlayer').getElementsByTagName('audio')[0].volume"; var b=document.createElement('div'); -b.style.cssText='position:relative;left:28px;top:8px;'; +b.style.cssText='position:relative;left:28px;'; b.innerHTML='<input type="button" value="10%" onclick="'+a+'=0.1">' +'<input type="button" value="20%" onclick="'+a+'=0.2">' +'<input type="button" value="30%" onclick="'+a+'=0.3">'
  • /*
     * @title バンブラPの試聴画面に音量変更ボタンを追加する
     * @description バンブラPの試聴画面に音量変更ボタンを追加する。(Flash Playerを使用するブラウザでは動作しない。)
     * @include http://9129suppon.com/music/*
     * @license MIT License
     */
    
    (function(){
    var a="document.getElementById('musicPlayer').getElementsByTagName('audio')[0].volume";
    var b=document.createElement('div');
    b.style.cssText='position:relative;left:28px;';
    b.innerHTML='<input type="button" value="10%" onclick="'+a+'=0.1">'
               +'<input type="button" value="20%" onclick="'+a+'=0.2">'
               +'<input type="button" value="30%" onclick="'+a+'=0.3">'
               +'<input type="button" value="40%" onclick="'+a+'=0.4">'
               +'<input type="button" value="50%" onclick="'+a+'=0.5">'
               +'<input type="button" value="60%" onclick="'+a+'=0.6">'
               +'<input type="button" value="70%" onclick="'+a+'=0.7">'
               +'<input type="button" value="80%" onclick="'+a+'=0.8">'
               +'<input type="button" value="90%" onclick="'+a+'=0.9">'
               +'<input type="button" value="100%" onclick="'+a+'=1">';
    document.getElementById('musicPlayer').appendChild(b); 
    })();
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2015/12/15 00:12:38 - 2015-12-15
  2. 2015/07/20 01:22:53 - 2015-07-20
  3. 2015/07/20 01:19:10 - 2015-07-20
  4. 2015/07/20 01:17:35 - 2015-07-20