Greasy Fork is available in English.

移除bing下方滚动内容

自用,bing首页下方的滚动内容,国内的bing我不用,所以没试,希望先看说明,再决定吐不吐槽我

// ==UserScript==
// @name         移除bing下方滚动内容
// @version      0.0.8
// @author       Achernar
// @match        https://www.bing.com
// @match        https://www.bing.com/*
// @description  自用,bing首页下方的滚动内容,国内的bing我不用,所以没试,希望先看说明,再决定吐不吐槽我
// @grant none
// @namespace https://greasyfork.org/users/580896
// ==/UserScript==

// 获取bing下方滚动内容的 DOM 元素
const scrollCont= document.querySelector('.scroll_cont');
 
// 如果该元素存在,则将其隐藏
if (scrollCont) {
  scrollCont.style.display = 'none';
}

// 获取bing搜索框下方小窄条
const xzt= document.querySelector('.sw_as');
 
// 如果该元素存在,则将其隐藏
if (xzt) {
  xzt.style.display = 'none';
}

// 获取bing搜索框下面的方块
const fk= document.querySelector('.below_sbox');
 
// 如果该元素存在,则将其隐藏
if (fk) {
  fk.style.display = 'none';
}