Facebook
From ja, 4 Years ago, written in Plain Text.
This paste is a reply to anty jak BEZ KEYLOGERA from ja - view diff
Embed
Download Paste or View Raw
Hits: 385
  1. // ==UserScript==
  2. // @name         Anty lag + Zamykanie The Best
  3. // @namespace    http://tampermonkey.net/
  4. // @version      0.1
  5. // @description  try to take over the world!
  6. // @author       Auto zamykanie
  7. // @match        *://*/
  8. // @grant        none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12.     'use strict';
  13.  
  14.     function antyLag(){
  15.         if($('#battletimer')[0].innerText == "Walka zakończona." && $('#battle')[0].style["display"] == "block"){
  16.             _g('fight&a=quit');
  17.             console.log("Zamknięto okno.");
  18.         }
  19.     }
  20.     setInterval(function(){ antyLag(); }, 150);
  21. })();