XP BLOCKER

Blocks XP gain.

  1. // ==UserScript==
  2. // @name XP BLOCKER
  3. // @namespace https://greasyfork.org/en/scripts/451341-bonk-commands
  4. // @version 1.2
  5. // @description Blocks XP gain.
  6. // @author LEGENDBOSS123
  7. // @match https://bonk.io/*
  8. // @run-at document-idle
  9. // @grant none
  10. // @unwrap
  11. // ==/UserScript==
  12. if(typeof(top.originalSend2)=='undefined'){top.originalSend2 = document.getElementById("maingameframe").contentWindow.WebSocket.prototype.send;}
  13.  
  14.  
  15. document.getElementById("maingameframe").contentWindow.WebSocket.prototype.send = function(args) {
  16. if(this.url.includes(".bonk.io/socket.io/?EIO=3&transport=websocket&sid=")){
  17. if(typeof(args) == "string"){
  18. if(args.startsWith('42[38')){
  19. return;
  20. }
  21. }
  22.  
  23. }
  24. return originalSend2.call(this,args);
  25. }