必应搜索质感设计主题

以卡片形式展示搜索结果,遵循Material Design

当前为 2020-04-02 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         BingSearchMaterialDesignTheme
// @name:zh-CN   必应搜索质感设计主题
// @description  Show search results as cards, follow Material Design
// @description:zh-CN  以卡片形式展示搜索结果,遵循Material Design
// @namespace    https://greasyfork.org/users/197529
// @version      0.5.9
// @author       kkocdko
// @license      Unlicense
// @match        *://*.bing.com/search
// @run-at       document-start
// ==/UserScript==
"use strict";

document.documentElement.insertAdjacentHTML(
  "beforeend",
  `<style>

#sb_clt,
.b_logoArea,
#id_h,
#b_pole,
#b_content > aside,
#b_footer {
  display: none;
}

body {
  --card-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
  min-width: unset;
  background: rgb(248, 249, 250);
}

#b_header,
#b_content {
  width: 90vw;
  min-width: unset;
  max-width: 700px;
  margin: 0 auto;
}

#b_header {
  background: none;
}

#b_header #est_switch {
  margin-left: 0;
}

#b_header .est_selected {
  box-shadow: var(--card-shadow);
}

#b_header .est_selected::before {
  bottom: -10px;
  left: 0;
}

#b_header .est_selected::after {
  border: none;
  box-shadow: none;
}

#b_header #sb_form {
  width: 100%;
}

#b_header #sb_form_q {
  flex-grow: 1;
  width: unset;
}

#b_header .b_searchboxForm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border: none;
  box-shadow: var(--card-shadow);
}

#b_header #sb_form_q ~ :not(#sw_as) {
  top: 0;
  width: 22px;
  height: 22px;
  margin: 0 10px;
  padding: 0;
  text-align: center;
}

#b_header #sb_form_q ~ #sb_go_par {
  width: unset;
  height: unset;
  margin: 0;
}

#b_header #sw_as {
  width: 100%;
}

#b_header .sa_drw {
  box-shadow: var(--card-shadow);
}

#b_header .b_scopebar {
  margin-left: 0;
}

#b_content {
  padding-top: 35px;
  padding-left: 0;
}

#b_results {
  display: grid;
  gap: 15px;
  width: unset;
  margin-top: 5px;
}

#b_results > li {
  margin: 0;
  padding: 14px 19px;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: var(--card-shadow);
}

#b_results > li > h2 {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#b_results .b_caption {
  padding-bottom: 0;
}

#b_results #lMapContainer {
  border: none;
  box-shadow: none;
}

#b_results #lMapContainer .dynMap {
  width: unset;
}

#b_results #dict_ans {
  padding-top: 0;
  border: none;
}

  </style>`.replace(/;/g, "!important;")
);