去除博客导流公众号

去除openwrite“博客导流公众号”功能

  1. // ==UserScript==
  2. // @name 去除博客导流公众号
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0.0
  5. // @description 去除openwrite“博客导流公众号”功能
  6. // @author You
  7. // @include http*://*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13. destroyBTWPlugin();
  14.  
  15. function destroyBTWPlugin() {
  16. // 判断是否有插件
  17. const hasBTWPlugin = typeof BTWPlugin == "function"
  18.  
  19. if (hasBTWPlugin) {
  20. // 获取属性
  21. const plugin = new BTWPlugin().options;
  22. if (plugin) {
  23. // 删除元素
  24. const read_more_wrap = document.getElementById("read-more-wrap")
  25. if (read_more_wrap) {
  26. read_more_wrap.remove();
  27. }
  28. // 删除样式
  29. const ctner = document.getElementById(plugin.id)
  30. if (ctner) {
  31. ctner.removeAttribute("style");
  32. }
  33. }
  34. }
  35. }
  36. })();

QingJ © 2025

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