Gats.io & Takepoint.io - Disable Stats Tracking

Disables stats tracking, without the need for an adblocker.

  1. // ==UserScript==
  2. // @name Gats.io & Takepoint.io - Disable Stats Tracking
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description Disables stats tracking, without the need for an adblocker.
  6. // @author Nitrogem35
  7. // @match https://gats.io
  8. // @match https://takepoint.io/*
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14. setInterval(() => {
  15. if(window.document.location.origin == 'https://gats.io') { //gats.io websocket
  16. if(RF.list[0].socket.readyState == 1) {
  17. RF.list[0].socket.send('x,1')
  18. }
  19. }
  20. if(window.document.location.origin == 'https://takepoint.io') { //takepoint.io websocket
  21. for(i in sockets) {
  22. if(sockets[i].readyState == 1) {
  23. sockets[i].send('x,1')
  24. //i got too lazy to finish this, but oh well, it already works just fine
  25. /*sockets[i].addEventListener('message', function(event) {
  26. var data = new TextDecoder().decode(event.data)
  27. var packets = data.split("|")
  28. for(x in packets) {
  29. if(packets[x].startsWith("a"))
  30. }
  31. })*/
  32. }
  33. }
  34. }
  35. }, 1000) //I hope nobody is bad enough to die in less than 1 second...
  36. })();