Alistair1231 / Widen Bing Search Results

// ==UserScript==
// @name         Widen Bing Search Results
// @namespace    https://github.com/Alistair1231/my-userscripts/
// @version      0.1
// @description  Makes the place for the Bing search results wider
// @author       Alistair1231
// @match        https://www.bing.com/search*
// @grant        GM_addStyle
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    const css = `
        @media (min-width: 1200px) {
            #b_results {
                width: calc(80% - 300px) !important; 
                max-width: 1200px !important; 
            }
        }

        @media (max-width: 1199px) and (min-width: 768px) {
            #b_results {
                width: calc(90% - 300px) !important; 
            }
        }

        @media (max-width: 767px) {
            #b_results {
                width: 100% !important; 
            }
        }
    `;

    GM_addStyle(css);
})();