restep_song_random_selector.pyを実行すると曲名が表示されます。- 引数に
1を指定することでコラボ曲も選出対象にできます。 - デフォルトでは対象外です。
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
| document.querySelectorAll('li[class~="d"]').forEach(node => | |
| node.appendChild( | |
| document.createTextNode( | |
| `(${node.className.split(' ').find(name => name.startsWith('c'))?.replace(/[^0-9]/g, '')}回)` | |
| ) | |
| ) | |
| ); |
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
| let hashtags = 'eventernote'; | |
| const tds = [... document.getElementsByClassName('gb_events_info_table')[0].querySelectorAll('td')]; | |
| for (let i = 0; i < tds.length; i++) { | |
| if (tds[i].textContent === 'Twitterハッシュタグ') { | |
| hashtags += ` ${tds[i+1].textContent.replaceAll('#', '')}`; | |
| break; | |
| } | |
| } | |
| const title = document.getElementsByClassName('gb_events_detail_title')[0].children[0].textContent; |
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
| // ==UserScript== | |
| // @name 「夏のきらら検定 in アルティメットクイズ」正答送信自動化 | |
| // @namespace https://github.com/mosaicer | |
| // @author mosaicer | |
| // @version 1.0.0 | |
| // @description 「夏のきらら検定 in アルティメットクイズ」で正答を送信する操作を自動化します。 | |
| // @match https://www.asfes.jp/game/kirarafantasia/quz-1555-q1q/ | |
| // @match https://www.asfes.jp/game/kirarafantasia/quz-1555-q1q/quizform/ | |
| // @match https://www.asfes.jp/game/kirarafantasia/quz-1555-q1q/quiz/result/* | |
| // @license MIT |
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
| import js2py | |
| import requests | |
| def get_commom_url(): | |
| # https://c-static.asfes.jp/include_121/front2/js/common.js | |
| return js2py.eval_js(""" | |
| var COMMON_URL = { | |
| urlAddCacheMeasure : function (url) { | |
| var parse = this.urlParse(url); | |
| var time = this.getUnixTime(); |
- https://qiita.com/ayasuda/items/3773858e5e93ba94da48
- http://mac.flatsystems.net/data/archives/127.html
- https://stackoverflow.com/questions/32304097/applescript-remove-last-character-in-text-string
- https://www.alfredforum.com/topic/3891-applescript-to-open-new-chrome-window-with-passed-url/
- https://stackoverflow.com/questions/42292181/applescript-wait-that-the-page-is-load-on-chrome
- https://stackoverflow.com/questions/3655394/how-can-i-get-applescript-to-click-a-button-or-link-on-a-webpage
- https://macscripter.net/viewtopic.php?id=34505
- https://developer.apple.com/library/content/documentation/AppleScript/Conceptual/AppleScriptLangGuide/conceptual/ASLR_about_handlers.html
- https://superuser.com/questions/14762/execute-applescript-without-open-the-editor
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
| import java.io.BufferedReader | |
| import java.io.InputStreamReader | |
| fun main(args: Array<String>) { | |
| // 地雷原を作成 | |
| val minefield = makeMinefield() | |
| // 地雷原をコンソールに出力 | |
| println(minefield.getField()) | |
| println() |
NewerOlder