// ==UserScript== // @name bing clean // @namespace http://tampermonkey.net/ // @version 2024-08-23 // @description beautify bing search result // @author kevinspider // @match https://www.bing.com/search?q=* // @icon https://www.google.com/s2/favicons?sz=64&domain=bing.com // @require https://scriptcat.org/lib/513/2.0.0/ElementGetter.js // @grant GM_addStyle // @run-at document-start // ==/UserScript== (function() { 'use strict'; (async function(){ // id="relatedSearchesLGWContainer" // id="lgWptNavContainer" // #b_results > li.b_msg.b_canvas let remove_selectors = [ '#relatedSearchesLGWContainer', // 相关搜索 '#lgWptNavContainer', // 奇怪的浮窗 '#b_bnp_bopc', // 底部广告 '#b_results > li.b_msg.b_canvas', // 底部多余信息 '#id_l', // 顶部登录 '#id_rh', // 顶部奖杯 '#id_mobile', // 顶部手机 '#b_context', // 右边没用的相关搜索 '#b_footer', // footer '#b_wpt_container', // 顶部横向的搜索结果 ]; elmGetter.each(remove_selectors, (element, newInsert) => { try { element.remove(); } catch { return false; } }); GM_addStyle('div.b_caption{display:none !important}'); GM_addStyle('#b_results{width: 75% !important}'); GM_addStyle('#mc_vtvc__16 > a > div > div.mc_vtvc_th.b_canvas > div.cico > img{width: 100% !important}'); GM_addStyle('#b_results>li{margin: 0 0 20px !important}'); GM_addStyle('.b_scopebar li{font-size:13px !important}'); })(); })();