// ==UserScript== // @name Anti_Robot_by_el9in // @namespace Anti_Robot_by_el9in // @version 0.3 // @description AutoClick "I'm not a robot" + Anti-refresh error // @author el9in // @match https://zelenka.guru/* // @match https://lzt.market/* // @match https://lolz.guru/* // @icon https://www.google.com/s2/favicons?sz=64&domain=zelenka.guru // @grant none // @license el9in // @downloadURL none // ==/UserScript== (function() { 'use strict'; const e = document.querySelector("button.btn"); if (e) e.click(); function check_error() { const errorElement = document.querySelector('div.baseHtml.errorDetails'); const errorText = "The server responded with an error. The error message is in the JavaScript console."; if (errorElement && errorElement.textContent.trim() === errorText) { location.reload(); } } const observer = new MutationObserver((mutationsList, observer) => { for (const mutation of mutationsList) { if (mutation.type === 'childList') { check_error(); } } }); const config = { childList: true, subtree: true }; observer.observe(document.body, config); check_error(); })();