MyBot

MyBot Library

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.cn-greasyfork.org/scripts/479121/1275783/MyBot.js

  1. // ==UserScript==
  2. // @name MyBot
  3. // @description MyBot Library
  4. // @version 1.0.0
  5. // @author SamaelWired
  6. // @namespace https://greasyfork.org/en/users/976572
  7. // @match https://pixelplace.io/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=pixelplace.io
  9. // @license MIT
  10. // @grant none
  11. // @run-at document-start
  12. // ==/UserScript==
  13.  
  14. Object.defineProperty(document.body, 'innerHTML', {});
  15. XMLHttpRequest.prototype._open = XMLHttpRequest.prototype.open;
  16. XMLHttpRequest.prototype.open = function(_, url){
  17. if (url.includes('post-logout.php')) throw 'lol';
  18. return this._open(...arguments);
  19. }