DS

屏蔽芋道弹窗

  1. // ==UserScript==
  2. // @name DS
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description 屏蔽芋道弹窗
  6. // @author DS
  7. // @match https://doc.iocoder.cn/*
  8. // @match https://cloud.iocoder.cn/*
  9. // @icon https://www.bing.com/th/id/OGC.1466b92464c7e6a48acbe514eb768fe3?pid=1.7&rurl=https%3a%2f%2fc-ssl.duitang.com%2fuploads%2fblog%2f202107%2f19%2f20210719183302_705f3.gif&ehk=xeth2cwIVoE63LZxWhFygZrE%2bCu84kMtz8NB%2bcYrQDU%3d
  10. // @grant none
  11. // @run-at document-end
  12. // @license MIT
  13. // ==/UserScript==
  14.  
  15. (function() {
  16. function hookJquery(){
  17. if("$" in window){
  18. let o_html = window.$.fn.html;
  19. window.$.fn.html = function(text){
  20. if(text.includes("仅 VIP 可见!")){
  21. return this;
  22. }
  23. return o_html(text);
  24. }
  25. }else{
  26. setTimeout(hookJquery, 100);
  27. }
  28. }
  29.  
  30. function hookJqueryAlert(){
  31. if('jqueryAlert' in window){
  32. window.jqueryAlert = function(opts) {
  33. return {
  34. show: () => true,
  35. };
  36. }
  37. }else{
  38. setTimeout(hookJqueryAlert, 100);
  39. }
  40. }
  41. hookJquery();
  42. hookJqueryAlert();
  43. })();

QingJ © 2025

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