mcawesomept / CBNC Live

// ==UserScript==
// @name         CBNC Live
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  view cnbc live without garbage
// @author       mcawesomept
// @match        https://www.newslive.com/*
// @match        https://www.livenewsnow.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=newslive.com
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    var styles = `

    /*setup window size - remove the one you don't want*/
    body{width:100%}
    */body{width:500px}*/

    /*background removal*/
    .backstretch > img{display:none}
    .backstretch{display:none}
    body{background-color:#000;padding-bottom:0 !important;}

    /*header removal*/
    .td-header-wrap,
    .td-post-header{display:none}

    /*footer removal*/
    .td-footer-container,
    .td-sub-footer-container.td-container{display:none}

    /*privacy button*/
    .qc-cmp2-persistent-link{display:none !important;}

    /*cookies*/
    #qc-cmp2-container{display:none !important;}

    /*overlay*/
    #pum-5735{display:none !important;}

    html.pum-open.pum-open-overlay, html.pum-open.pum-open-overlay.pum-open-fixed .pum-overlay
    {overflow:auto !important;}

    /*go up removal*/
    .td-js-loaded .td-scroll-up{display:none !important}

    /*sidebar removal*/
    .td-main-sidebar{display:none !important}

    /*main content stretch*/
    .td-pb-span8{width:auto}

    /*main content full size*/
    .td-container{width:auto}

    /*main content - focus on video - hide everything else*/
    .td-post-content{padding:0}
    .td-post-content > p,
    .td-post-content > aside,
    .td-post-content > ol,
    .td-post-content > ul{display:none}
    .td-post-content > div.crp_related,
    .td-post-content > div.exp-col-content-holder
    {display:none}
    /*.td-post-content > div#myElement{display:block}*/
    .td-pb-row [class*="td-pb-span"]{float:none}

    /*video object clean-up*/
    .jw-logo-top-right,
    .swp_social_panelSide,
    .swp_social_panel
    {display:none !important;}

    /*bottom bar*/
    .td-pb-row:before, .td-pb-row:after{display:none}

    /*borders*/
    .td-post-content{border-top:0}
    .td-container{border-bottom:0}
    .td-pb-row [class*="td-pb-span"]{border-left:0}
    .td-main-content:before{width:0}

    @media only screen and (min-width: 1200px) {
        /* styles for browsers larger than 1200px; */
        body{
            /*width:80%;*/
        }
    }

    `;
    var styleSheet = document.createElement("style");
    styleSheet.type = "text/css";
    styleSheet.innerText = styles;
    console.log("Overriding css...");
    document.head.appendChild(styleSheet);
})();