Bing.com Customization

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

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==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; }');