去你妈的秒懂

去除百度系网站的秒懂百科/视频,目前支持百度百科、百度知道

安裝腳本?
作者推薦腳本

您可能也會喜歡 Wanta

安裝腳本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         去你妈的秒懂
// @namespace    http://tampermonkey.net/
// @version      0.2.5
// @license      gpl-3.0
// @description  去除百度系网站的秒懂百科/视频,目前支持百度百科、百度知道
// @author       PRO
// @match        https://baike.baidu.com/*
// @match        https://jingyan.baidu.com/*
// @icon         https://www.baidu.com/favicon.ico
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    const log = (...args) => console.log("[去你妈的秒懂]", ...args);
    const config = { // 添加域名-selector的映射来适配更多网站
        "baike.baidu.com": ['.second-wrapper', '.full-screen-second_prestrain', '[class*="contentBottom_"]', '#J-lemma-video-list'],
        "jingyan.baidu.com": ['.feeds-video-box', '.feeds-video-one-view', '.video-wrapper']
    }
    const names = config[window.location.host];
    if (names) {
        names.forEach((name) => {
            const sb = document.querySelector(name);
            if (sb) {
                sb.remove();
                log(`${name} 元素移除成功!`);
            } else {
                log(`未发现 ${name} 元素!`);
            }
        });
    }
    else {
        log('暂不支持此站点,请提交适配反馈!');
    };
})();