您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Disables stats tracking, without the need for an adblocker.
- // ==UserScript==
- // @name Gats.io & Takepoint.io - Disable Stats Tracking
- // @namespace http://tampermonkey.net/
- // @version 1.0
- // @description Disables stats tracking, without the need for an adblocker.
- // @author Nitrogem35
- // @match https://gats.io
- // @match https://takepoint.io/*
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- setInterval(() => {
- if(window.document.location.origin == 'https://gats.io') { //gats.io websocket
- if(RF.list[0].socket.readyState == 1) {
- RF.list[0].socket.send('x,1')
- }
- }
- if(window.document.location.origin == 'https://takepoint.io') { //takepoint.io websocket
- for(i in sockets) {
- if(sockets[i].readyState == 1) {
- sockets[i].send('x,1')
- //i got too lazy to finish this, but oh well, it already works just fine
- /*sockets[i].addEventListener('message', function(event) {
- var data = new TextDecoder().decode(event.data)
- var packets = data.split("|")
- for(x in packets) {
- if(packets[x].startsWith("a"))
- }
- })*/
- }
- }
- }
- }, 1000) //I hope nobody is bad enough to die in less than 1 second...
- })();