Remove Gamekee custom pointers

Remove Gamekee/BA custom pointers

  1. // ==UserScript==
  2. // @name Remove Gamekee custom pointers
  3. // @namespace https://github.com/systemannounce/RBCM
  4. // @version v1.0.0
  5. // @description Remove Gamekee/BA custom pointers
  6. // @author Felix_SANA
  7. // @match https://www.gamekee.com/ba/*
  8. // @icon https://www.gamekee.com/favicon.ico
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. // 创建一个观察器实例
  17. var observer = new MutationObserver(function(mutations) {
  18. mutations.forEach(function(mutation) {
  19. if (mutation.attributeName === "style") {
  20. document.body.removeAttribute("style");
  21. }
  22. });
  23. });
  24.  
  25. // 配置观察选项:
  26. var config = { attributes: true };
  27.  
  28. // 传入目标节点和观察选项
  29. observer.observe(document.body, config);
  30. })();