Greasy Fork is available in English.

精简必应搜索(Bing)的右侧边栏,只保留「相关搜索」和「相关英文搜索」

精简必应搜索(Bing)的右侧边栏

질문, 리뷰하거나, 이 스크립트를 신고하세요.
// ==UserScript==
// @name         精简必应搜索(Bing)的右侧边栏,只保留「相关搜索」和「相关英文搜索」
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  精简必应搜索(Bing)的右侧边栏
// @author       prettykernel
// @match        https://cn.bing.com/search?q=*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    for (const e of document.querySelectorAll('.b_ans')) {
        const textContent = e.getElementsByTagName('h2')[0] && String(e.getElementsByTagName('h2')[0].textContent)
        if (textContent !== '相关搜索' && textContent !== '相关英文搜索') {
            e.remove()
        }
    }
})();