Skip to content

Instantly share code, notes, and snippets.

@muro3r
Last active October 9, 2021 03:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save muro3r/6222c4aee8527c80e58457efdab81d30 to your computer and use it in GitHub Desktop.
Save muro3r/6222c4aee8527c80e58457efdab81d30 to your computer and use it in GitHub Desktop.
忙しい人向けのオカ研
// ==UserScript==
// @name Autoclick okaken button
// @namespace https://gist.github.com/muro3r/6222c4aee8527c80e58457efdab81d30/
// @version 0.1.0
// @description オカ研でのボタンクリックを自動化する
// @author muro3r
// @match https://p.eagate.573.jp/game/2dx/28/room/okaken/*
// @icon https://www.google.com/s2/favicons?domain=573.jp
// @grant none
// ==/UserScript==
if (document.location.pathname === "/game/2dx/28/room/okaken/select.html") {
document.querySelector("input.btn_start").click()
}
if (document.location.pathname === "/game/2dx/28/room/okaken/synthesis.html") {
document.querySelector('#btn_skip').click()
}
if (document.location.pathname === "/game/2dx/28/room/okaken/result.html") {
setTimeout(() => {document.location.pathname = "/game/2dx/28/room/okaken/index.html"}, 5000)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment