orochi.network

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

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

// ==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)