干净Bing

Bing搜索去除视频&相关信息板块、菜单栏不需要的选项、语音输入按钮

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         干净Bing
// @namespace    http://tampermonkey.net/
// @version      1.1
// @description  Bing搜索去除视频&相关信息板块、菜单栏不需要的选项、语音输入按钮
// @author       大触紫衣WisteriaZy
// @match        https://www.bing.com/search*
// @match        https://cn.bing.com/search*
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    // 视频
    const videoSection = document.querySelector('li.b_ans.b_mop.b_vidAns');
    if (videoSection) {
        videoSection.style.display = 'none';
    }

    // 新闻
    const newsSection = document.querySelector('li.b_ans.b_mop.b_nwsAns');
    if (newsSection) {
        newsSection.style.display = 'none';
    }

    // 趣味阅读
    const readSection = document.querySelector('li.b_ans.b_mop.b_mopb');
    if (readSection) {
        readSection.style.display = 'none';
    }

    // 语音输入
    const micSection = document.querySelector('#mic_cont_icon.mic_cont.icon.partner');
    if (micSection) {
        micSection.style.display = 'none';
    }

    // 隐藏导航栏中的不需要的项目
    function hideNavItemById(itemId) {
        const navItem = document.getElementById(itemId);
        if (navItem) {
            navItem.style.display = 'none';
        }
    }

    // Hide specific navigation items
    hideNavItemById('b-scopeListItem-video'); // 隐藏“视频”
    hideNavItemById('b-scopeListItem-dictionary'); // 隐藏“词典”
    hideNavItemById('b-scopeListItem-academic'); // 隐藏“学术”
    hideNavItemById('b-scopeListItem-menu');
    //hideNavItemById('b-scopeListItem-local'); // 隐藏“地图”(在“更多”里面)
    //hideNavItemById('b-scopeListItem-flights'); // 隐藏“航班”(在“更多”里面)

})();