Bypass Ysm lol

self explain

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Bypass Ysm lol
// @namespace    liebert
// @version      4.0
// @description  self explain
// @match        *://biharkhabar.net/*
// @match        *://newkhabar24.com/*
// @match        *://insurance.odiadance.com/*
// @match        *://goodmorningimg.com/*
// @match        *://go.just2earn.com/*
// @match        *://*.ysmteam.xyz/*
// @license      GPL-3.0
// @grant        none
// ==/UserScript==

(function () {
  'use strict';

  if (window.hadesFinalScriptLoaded) return;
  window.hadesFinalScriptLoaded = true;

  const host = location.hostname;
  const path = location.pathname;

  if (
    host === 'biharkhabar.net' ||
    host === 'newkhabar24.com' ||
    host === 'insurance.odiadance.com' ||
    host === 'goodmorningimg.com'
  ) {
    const interval = setInterval(() => {
      const button = document.querySelector('center a button#tp-snp2') ||
        [...document.querySelectorAll('center a button')]
          .find(b => b.innerText.toUpperCase().includes('COUNTIUE'));
      const href = button?.closest('a')?.href;
      if (href) {
        clearInterval(interval);
        location.href = href;
      }
    }, 100);
  }

  if (host === 'go.just2earn.com') {
    const interval = setInterval(() => {
      const timer = document.querySelector('#timer');
      const button = document.querySelector('.get-link');
      if (timer && button) {
        const time = parseInt(timer.innerText);
        if (time === 0 && !button.classList.contains('disabled')) {
          clearInterval(interval);
          button.click();
        }
      }
    }, 300);
  }

  if (
    (host === 'ysmteam.xyz' || host === 'www.ysmteam.xyz') &&
    !path.includes('/public/key/active.php')
  ) {
    const key_elem = document.querySelector('p.key')?.innerText;
    const key_url = new URLSearchParams(location.search).get('key');
    const key = key_elem || key_url;
    if (key) navigator.clipboard.writeText(key);
  }
})();