Greasy Fork is available in English.

去除博客导流公众号

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

// ==UserScript==
// @name         去除博客导流公众号
// @namespace    http://tampermonkey.net/
// @version      1.0.0
// @description  去除openwrite“博客导流公众号”功能
// @author       You
// @include      http*://*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
   
    destroyBTWPlugin();

    function destroyBTWPlugin() {
        // 判断是否有插件
        const hasBTWPlugin = typeof BTWPlugin == "function"

        if (hasBTWPlugin) {
            // 获取属性
            const plugin = new BTWPlugin().options;
            if (plugin) {
                // 删除元素
                const read_more_wrap = document.getElementById("read-more-wrap")
                if (read_more_wrap) {
                    read_more_wrap.remove();
                }
                // 删除样式
                const ctner = document.getElementById(plugin.id)
                if (ctner) {
                    ctner.removeAttribute("style");
                }
            }
        }
    }
})();