通义千问助手

通义千问去水印

  1. // ==UserScript==
  2. // @name 通义千问助手
  3. // @name:zh 通义千问助手
  4. // @name:zh-CN 通义千问助手
  5. // @name:en 通义千问助手
  6. // @namespace http://tampermonkey.net/
  7. // @author 麦丽素
  8. // @version 0.2
  9. // @description 通义千问去水印
  10. // @description:en 通义千问去水印
  11. // @match https://tongyi.aliyun.com/chat
  12. // @icon https://img.alicdn.com/imgextra/i4/O1CN01c26iB51UyR3MKMFvk_!!6000000002586-2-tps-124-122.png
  13. // @grant none
  14. // @run-at document-start
  15. // @license GPLv3
  16. // ==/UserScript==
  17.  
  18. Object.defineProperty(window, 'MutationObserver', {
  19. writable: false,
  20. configurable: false
  21. })
  22.  
  23. MutationObserver.prototype.observe = function(target, options) {
  24. console.log("Hook MutationObserver observe")
  25. this.disconnect();
  26. remove_water_mask();
  27. }
  28.  
  29. Element.prototype._attachShadow = Element.prototype.attachShadow;
  30. Element.prototype.attachShadow = function () {
  31. return this._attachShadow( { mode: "open" } );
  32. };
  33.  
  34.  
  35. function remove_water_mask() {
  36. let x = document.getElementsByTagName("div");
  37. let flag = false;
  38. for (var i = 0; i < x.length; i++) {
  39. if(x[i].shadowRoot){
  40. x[i].remove();
  41. flag = true;
  42. }
  43. }
  44. if (!flag) {
  45. setTimeout(remove_water_mask, 1000);
  46. }
  47. }
  48.  
  49. (function () {
  50. "use strict";
  51. remove_water_mask();
  52. //loader();
  53. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址