MyUQ パケットをGB表示

    
      
  • /*
     * @title MyUQ パケットをGB表示
     * @description my bookmarklet
     * @include https://my.uqmimax.jp/member/*
     * @license MIT License
     * @require
     * @javascript_url
     * @private
     */
    (()=>{
      if(!document.URL===/^https:\/\/my.uqwimax.jp\/member/) return;
      const PKT_ELM = document.querySelectorAll('td.t_right');
      let PKT_VAL = null;
      Array.from(PKT_ELM, t =>{
      PKT_VAL = t.innerText.replace(" パケット", "").replace(/,/g ,"");
      t.innerText =Math.round (( PKT_VAL / 8388608 )* 100) / 100 + '  GB'
      }
      );
    })();
    
    
    
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2020/05/02 15:41:52 - 2020-05-02
  2. 2020/05/02 15:37:31 - 2020-05-02