简书弹窗优化

移除简书安装客户端弹窗

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         简书弹窗优化
// @namespace    http://tampermonkey.net/
// @version      2024-04-12
// @description  移除简书安装客户端弹窗
// @author       LingQi
// @match        *://www.jianshu.com/p/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=jianshu.com
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...
    setInterval(() => {
        if (document.body.hasAttribute("style")) {
            document.body.removeAttribute("style");
            document.body.removeAttribute("class");
            document.querySelector("body > div:nth-child(14) > div > div._23ISFX-mask").classList.add("_23ISFX-mask-hidden");
            document.querySelector("body > div:nth-child(14) > div > div._23ISFX-wrap._23ISFX-wrap-middle").style.display = "none";
            console.log(1);
            clearInterval();
        }
    }, 100);
    window.onload = () => {
    }
})();