隐藏百度文库内“文档助手”的悬浮窗

隐藏百度文库名为“文档助手”的悬浮窗

Verze ze dne 17. 12. 2023. Zobrazit nejnovější verzi.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         隐藏百度文库内“文档助手”的悬浮窗
// @namespace    http://tampermonkey.net/
// @version      0.4.4
// @description  隐藏百度文库名为“文档助手”的悬浮窗
// @author       You
// @match       *://wenku.baidu.com/*
// @match       *://wenku.baidu.com/?_wkts_=*
// @match       *://wenku.baidu.com/view/*
// @match       *://wenku.baidu.com/share/*
// @match       *://wenku.baidu.com/link*
// @match       *://wenku.baidu.com/aggs/*
// @match       *://wenku.baidu.com/ndPureView/*
// @grant        GM_addStyle
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    GM_addStyle("#wk-chat { display: none !important; }");
    GM_addStyle(".wk-chat-modal.open { display: none !important; }");
    window.onload=function(){
        document.querySelector(".editor-plugin-wrap").parentElement.removeChild(document.querySelector(".editor-plugin-wrap"))
    }
})();