orochi.network

5/7/2025, 8:29:35 PM

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name        orochi.network
// @namespace   Violentmonkey Scripts
// @match       https://onprover.orochi.network/*
// @grant       none
// @version     1.0
// @author      DSperson
// @description 5/7/2025, 8:29:35 PM
// @user_url  https://x.com/asd576895195
// @license     GPL-3.0-or-later; https://www.gnu.org/licenses/gpl-3.0.txt
// ==/UserScript==


function getElementValueByXPath(xpath, index) {
    // 使用 document.evaluate 获取元素
    const result = document.evaluate(xpath, document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);

    if (result.snapshotLength > index) {
       const element = result.snapshotItem(index);
       return element;
    } else {
      return null;
    }
}

setInterval(() => {

  const gg = getElementValueByXPath('//*[@id="root"]/div/div/div[2]/main/div/div/div[1]/div[1]/div[2]/button/span/div', 0)
  if (gg === null) {
      const bt = getElementValueByXPath('//*[@id="root"]/div/div/div[2]/main/div/div/div[1]/div[1]/div[2]/button', 0)	
      if (bt) {
	 bt.click()
      }
   }
}, 1000* 10)