Bing.com Customization

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

  1. // ==UserScript==
  2. // @name Bing.com Customization
  3. // @namespace http://tampermonkey.net/
  4. // @version 2.14
  5. // @description make bing.com less bloated with trash news and bad writers
  6. // @author Philadelphia, USA
  7. // @match https://www.bing.com/
  8. // @locale english
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. // how did i do this? https://somethingididnotknow.wordpress.com/2013/07/01/change-page-styles-with-greasemonkeytampermonkey/
  13.  
  14.  
  15. function addGlobalStyle(css) {
  16.     var head, style;
  17.     head = document.getElementsByTagName('head')[0];
  18.     if (!head) { return; }
  19.     style = document.createElement('style');
  20.     style.type = 'text/css';
  21.     style.innerHTML = css;
  22.     head.appendChild(style);
  23. }
  24.  
  25. // remove the header links at the very top
  26. addGlobalStyle('div#hp_sw_hdr {display: none !important;}');
  27.  
  28. // customize the search box, make it more subtle
  29. addGlobalStyle('.b_searchboxForm, .b_searchbox { opacity: 0.55; box-shadow: none !important; }');
  30. addGlobalStyle('.b_searchboxForm:hover, .b_searchbox:hover { opacity: 1 }');
  31.  
  32. // customize the 144px height bottom news bar on page load, nuke it.
  33. addGlobalStyle('div#sc_md { display: none; }');
  34. addGlobalStyle('div#hp_bottomCell { padding-top: 144px; }');
  35.  
  36. // could also customize news bar like below, but it's not as clean.
  37. // addGlobalStyle('div#sc_md { position: relative; left: -9999px; }');
  38.