Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name [ꜱɪ] ᴏᴛᴄʜʟᴀɴ
- // @namespace http://tampermonkey.net/
- // @version 1.6
- // @description full automatyczna otchłań
- // @author Nolifequ
- // @match https://fobos.margonem.pl/
- // @icon https://cdn-icons-png.freepik.com/512/3903/3903967.png
- // ==/UserScript==
- (function() {
- 'use strict';
- function clickButton(button) {
- const randomDelay = Math.floor(Math.random() * 1000) + 2000;
- setTimeout(() => {
- button.click();
- }, randomDelay);
- }
- function checkAndClickButtons() {
- const buttons = document.querySelectorAll('span.gfont, button.bal_yes');
- buttons.forEach(button => {
- if (button.innerText.trim() === 'Walcz dalej' || button.getAttribute('name') === 'Walcz' || button.classList.contains('bal_yes')) {
- clickButton(button);
- }
- });
- }
- function clickAutoButton() {
- const autoButton = document.getElementById('autobattleButton');
- if (autoButton && autoButton.style.display === 'block') {
- const randomDelay = Math.floor(Math.random() * 1000) + 1000;
- setTimeout(() => {
- autoButton.click();
- }, randomDelay);
- }
- }
- function startInterval() {
- const interval = 2000;
- const randomDelay = Math.floor(Math.random() * 2000) - 1000;
- setTimeout(() => {
- checkAndClickButtons();
- clickAutoButton();
- startInterval();
- }, interval + randomDelay);
- }
- startInterval();
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement