// ==UserScript== // @name anti-ghost g�ra d�B // @namespace http://tampermonkey.net/ // @version 0.1 // @description Omija "ducha"/anti-afk w margonem // @author Sharley // @match https://*.margonem.pl/ // @grant none // @require https://pastebin.com/raw/hyi6d4Rc // ==/UserScript== setInterval(() => { const ghost = document.querySelector('#stasis-overlay').style.display if(!localStorage.getItem('numCheck')) localStorage.setItem('numCheck', 0) if(ghost === "block" || ghost === "") { if(localStorage.getItem('numCheck') === "0") { goTo(hero.x, hero.y + 1) localStorage.setItem('numCheck', 1) } else if (localStorage.getItem('numCheck') === "1") { goTo(hero.x, hero.y - 1) localStorage.setItem('numCheck', 0) } console.log('duch aktywny') } else if (ghost === "none") { console.log('duch nieaktywny') } }, 5000);