Bing.com Customization

make bing.com less bloated with trash news and bad writers

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Bing.com Customization
// @namespace    http://tampermonkey.net/
// @version      2.14
// @description  make bing.com less bloated with trash news and bad writers
// @author       Philadelphia, USA
// @match        https://www.bing.com/
// @locale       english
// @grant        none
// ==/UserScript==

// how did i do this? https://somethingididnotknow.wordpress.com/2013/07/01/change-page-styles-with-greasemonkeytampermonkey/


function addGlobalStyle(css) {
    var head, style;
    head = document.getElementsByTagName('head')[0];
    if (!head) { return; }
    style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = css;
    head.appendChild(style);
}

// remove the header links at the very top
addGlobalStyle('div#hp_sw_hdr {display: none !important;}');

// customize the search box, make it more subtle
addGlobalStyle('.b_searchboxForm, .b_searchbox { opacity: 0.55; box-shadow: none !important; }');
addGlobalStyle('.b_searchboxForm:hover, .b_searchbox:hover { opacity: 1 }');

// customize the 144px height bottom news bar on page load, nuke it.
addGlobalStyle('div#sc_md { display: none; }');
addGlobalStyle('div#hp_bottomCell { padding-top: 144px; }');

// could also customize news bar like below, but it's not as clean.
// addGlobalStyle('div#sc_md { position: relative; left: -9999px; }');