Last active
January 15, 2024 09:34
-
-
Save cohalz/5209c7ebdcb9c86a6564 to your computer and use it in GitHub Desktop.
マイページにてグルコスの楽曲プレイ回数を表示するブックマークレット(クレ数換算付き)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){var xmlHttp=new XMLHttpRequest();xmlHttp.open("GET","https://mypage.groovecoaster.jp/sp/json/music_list.php",false);xmlHttp.send(null);var data=JSON.parse(xmlHttp.responseText);var play_count_data=data.music_list.map(function(e){return e.play_count;});var sum=play_count_data.reduce(function(a,b){return a+b;});alert("%E6%A5%BD%E6%9B%B2%E3%83%97%E3%83%AC%E3%82%A4%E7%B7%8F%E6%95%B0: "+sum+"\n"+Math.ceil(sum/3)+"%E3%82%AF%E3%83%AC%E3%81%8F%E3%82%89%E3%81%84%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99");})(); |
使うまでの手順
- このページをブックマークする
2 上のjavascript~から();までをコピーする - 上で登録したブックマークを編集してコピーしたものを貼り付けて置き換える
- ログイン後マイページでブックマークレットを起動
連絡は@cohalzまで
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
。・*・:≡( ε:)