Greasy Fork is available in English.

Anti-AFK timeout

doesn't work in full screen

  1. // ==UserScript==
  2. // @name Anti-AFK timeout
  3. // @namespace http://tampermonkey.net/
  4. // @version 2025-02-18
  5. // @description doesn't work in full screen
  6. // @author r!PsAw
  7. // @match httos://diep.io/*
  8. // @match https://pctest.diep.io/
  9. // @icon https://www.google.com/s2/favicons?sz=64&domain=diep.io
  10. // @grant none
  11. // @license MIT
  12. // ==/UserScript==
  13.  
  14. let _m = [true, 0, 0];
  15. document.addEventListener('mousemove', anti_timeout);
  16. function anti_timeout(e){
  17. _m = [_m[0], e.clientX, e.clientY];
  18. }
  19. setInterval(() => {
  20. if(_m[0]){
  21. extern.onTouchMove(_m[1], _m[2]);
  22. }
  23. }, 1000);