去除doonsec关注遮盖

去除doonsec关注遮盖,不用扫码

// ==UserScript==
// @name         去除doonsec关注遮盖
// @namespace    https://wechat.doonsec.com/
// @version      0.1
// @description  去除doonsec关注遮盖,不用扫码
// @author       LANVNAL
// @match        https://wechat.doonsec.com/
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // 移除元素
    const adElement = document.getElementById('layui-layer1');
    if (adElement) {
        adElement.remove();
    }
    const ad2Element = document.getElementById('layui-layer-shade1');
    if (ad2Element) {
        ad2Element.remove();
    }

    // 移除html标签的style属性
    const htmlElement = document.documentElement;
    if (htmlElement.hasAttribute('style')) {
        htmlElement.removeAttribute('style');
    }
})();