Skip to content

Instantly share code, notes, and snippets.

@chrisg32
Last active March 8, 2017 15:06
Show Gist options
  • Save chrisg32/1b8a10192ab642d4c9079d0baa31d570 to your computer and use it in GitHub Desktop.
Save chrisg32/1b8a10192ab642d4c9079d0baa31d570 to your computer and use it in GitHub Desktop.
If you are like me you love Bing but you hate all the distractions (news, viewing history, etc.) that they put on their beautiful homepage. You can hide some of these features from the homepage but this script takes that a step further and completely removes all the distractions.
// ==UserScript==
// @name Hide Bing Distractions
// @namespace http://chrisg.ninja/
// @version 1.2
// @description If you are like me you love Bing but you hate all the distractions (news, viewing history, etc.) that they put on their beautiful homepage. You can hide some of these features from the homepage but this script takes that a step further and completely removes all the distractions.
// @author Chris Gonzales
// @include *://www.bing.com/*
// @include *://www.bing.com/chrome/newtab
// @exclude *://www.bing.com/search*
// @grant none
// @updateURL https://gist.github.com/chrisg32/1b8a10192ab642d4c9079d0baa31d570/raw/c651b55900f9097165808214e397d2045575ef73/RemoveBingDistractions.js
// ==/UserScript==
(function() {
'use strict';
function delayed() {
document.getElementById("hp_tbar").style.display = "none";
document.getElementById("caroToggle").style.display = "none";
document.getElementById("cnt_switcher").style.display = "none";
document.getElementById("mvstable").style.display = "none";
document.getElementById("cnt_mvstog").style.display = "none";
}
//run multiple times to clean up as soon as ajax events are done
window.setTimeout(delayed,1000);
window.setTimeout(delayed,1300);
window.setTimeout(delayed,3000);
window.setTimeout(delayed,5000);
window.setTimeout(delayed,10000);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment