Bing 禁止选择内容跳转事件 布局优化&美化 关闭多余项
必应 Bing 优化 by liweishu

Details
Authorliweishu
LicenseAGPLv3
Categorybing
Created
Updated
Code size4.9 kB
Code checksum12629500
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
更新:
version 0.1.4
搜索栏弹出列表美化、透明。
待解决问题:
可能由于某个父元素高度为0,无法使背景虚化。
Source code
/* ==UserStyle==
@name Bing 必应 优化
@namespace userstyles.world/user/liweishu
@version 0.1.4
@description 禁止文本的跳转事件,布局优化&美化,关闭多余选项。
@author vveishu
@license AGPLv3
==/UserStyle== */
@-moz-document regexp("https://(|www|cn)\\.?bing\\.com/search.+") {
body:has(#b_content) {
--bminwidth: 700px!important;
--ca1: #FFF7;
--ca2: #FFFD;
--cw: #FFF;
}
F body,
header,
#vm_c {
min-width: var(--bminwidth)!important;
}
body:has(#b_content) {
background-image: url("https://api.kdcc.cn/");
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center;
background-size: cover;
}
header {
background-color: transparent!important;
#sb_form>a>h1 {
background-color: #FFF;
}
#sb_form>div,
C &>nav>ul>li {
a {
border-radius: 20px;
}
&.b_active {
border: 0;
&>a {
filter: invert(100%);
}
}
}
}
header {
height: auto!important;
#sb_form>div {
border-left: 0px;
&>.qfc,
&>textarea {
width: 498px
}
}
#id_h {
background-color: #FFFFFFBF;
&>a:not(#id_sc) {
margin: 0 0 0 8px;
}
#langChange {
display: inline-block!important;
margin-left: 8px;
}
}
&>nav {
display: inline-block;
}
@media (width<1279px) {
#sb_form {
margin-left: calc((100% - 648px)/2);
&>.b_logoArea {
display: block;
}
}
#id_h {
position: absolute!important;
top: 10px;
}
}
}
/*搜索框*/
header #sb_form>div,
header>nav>ul>li a,
/*分页nav*/
#b_results>.b_pag ul.sb_pagF>li>a {
background-color: #FFFFFFBF;
backdrop-filter: blur(1px);
}
#b_content {
background-color: transparent;
#b_wpt_container {
margin-block-end: 15px;
background-color: var(--ca1);
.slide>div:not([class*="b_wpt_bl_b"])>div {
background-color: transparent;
}
div.b_wpt_bl_bord {
background-color: var(--cw);
}
.b_wpt_attr {
height: 25px;
&>:first-child>*,
&>:last-child {
background-color: var(--cw);
}
}
#lgWptNavContainer {
display: none;
}
}
}
/*搜索框下拉菜单*/
#sw_as .sa_as {
background: var(--ca1);
ul {
overflow: auto;
}
li {
margin-block-end: 2px;
float: left;
clear: left;
padding-inline-end: 15px;
}
li,
li:last-of-type {
background: var(--ca2);
border-radius: 36px;
}
}
/*结果组*/
.b_rc_gb_window{
overflow: auto;
scrollbar-gutter: stable both-edges;
}
#b_rc_gb_origin.b_rc_gb_sub{
height: auto;
.b_rc_gb_sub_column{
max-width: 50%;
box-sizing: border-box;
}
}
}
@-moz-document regexp("https://(|www|cn)\\.?bing\\.com/search.+") {
/*禁止文本的跳转事件*/
#b_results {
pointer-events: none;
a {
pointer-events: auto!important;
}
}
/*关闭多余*/
/*视频&其他人提问*/
.b_ans.b_mop,
/*选中快速搜索*/
#qs_searchBoxOuter,
/*右侧相关搜索*/
aside[aria-label="更多结果"],
/*积分、返现*/
#id_rh_w,
#id_rfob,
/*搜索栏下拉菜单→相关搜索、人员还搜索*/
#sa_requery {
display: none;
}
/**/
header {
#sb_form>.b_phead_chat_link {
@media (width<1335px) {
display: none;
}
@media (width<1279px) {
display: inline!important;
}
}
#id_h {
right: 40px!important;
}
&>nav {
position: relative!important;
>ul {
display: inline!important;
}
}
}
#b_content {
#b_tween {
padding-left: 0;
#b_tween_searchResults {
background-color: #fffc;
border-radius: 20px;
padding-left: 20px;
}
}
#b_results {
#brsv3 {
width: 608px;
li {
width: 296px
}
}
}
}
}
@-moz-document regexp("https://(|www|cn)\\.?bing\\.com/imageszzzzzzzzzz/search.+") {
/*未完成 图片搜索*/
header:has(#b_content) {
margin-bottom: 0!important;
&>nav {
&>ul {
margin-right: auto!important;
display: inline;
&>li[id^="b-scopeListItem"] {
display: inline-block!important;
}
}
#fltIdtCon {
display: inline!important;
right: auto;
bottom: auto;
position: static;
#fltIdt {
display: none!important;
}
}
}
}
#b_content {
#ftr_pane {
display: block!important;
overflow: visible;
height: 33px;
margin-top: 0px;
margin-bottom: unset;
padding-left: calc(160px + 4px);
background-color: transparent;
&>div {
min-width: auto;
background-color: #fffa;
width: auto;
}
}
#rfPane {
display: none;
}
#vm_c>div {
background-color: transparent;
#mmComponent_images_2 {
width: 100%!important;
}
}
}
footer {
display: none;
}
}