Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name AR
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description autorefresh nie działający na captche
- // @author Czogi
- // @match http://*.margonem.pl/
- // @grant none
- // ==/UserScript==
- (() => {
- const sleep = (time) => {
- return new Promise((resolve) => setTimeout(resolve, time));
- };
- const oldParse = parseInput;
- let refresh = false;
- parseInput = (data, a, b) => {
- refresh = false;
- oldParse(data, a, b);
- };
- (async () => {
- while (true) {
- await sleep(3000);
- if (
- refresh &&
- document.getElementById("captcha").style.display != "block"
- ) {
- location.reload();
- }
- refresh = true;
- }
- })();
- })();
Add Comment
Please, Sign In to add comment