freeos / FTX Cleaner

// ==UserScript==
// @name         FTX Cleaner
// @namespace    https://openuserjs.org/scripts/freeos
// @version      1.0.0
// @description  Cleans the FTX Crypto Exchange UI
// @copyright    2019, freeos (https://openuserjs.org/users/freeos)
// @license      MIT; https://opensource.org/licenses/MIT
// @include      https://ftx.com/trade*
// @require      https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js
// @grant        GM_addStyle
// ==/UserScript==

/*

Clean up the FTX Crypto Exchange UI:

- compact left side
- remove TrollBox
- compact trading pairs header
- compact Order Book and Market Trades list

*/

this.$ = this.jQuery = jQuery.noConflict(true);

changeCSS();

function changeCSS() {
  let css = `
    .MuiListItem-root {
       padding-top: 0px !important;
       padding-bottom: 0px !important;
    }

    .MuiListSubheader-root {
      line-height: 20px !important;
    },
    
    div[role="tablist"]>.MuiTab-root {
      padding: 6px 3px !important;
    },

    button.MuiButtonBase-root.MuiFab-root.jss521.MuiFab-extended.MuiFab-sizeMedium {
      display: none !important;
    }
    
    tr.MuiTableRow-root>.MuiTableCell-root {
      line-height: 0.90 !important;
    }
  `;

  GM_addStyle(css);

  // Troll Box
  css = `
    button.MuiButtonBase-root.MuiFab-root.jss521.MuiFab-extended.MuiFab-sizeMedium {
      display: none !important;
    }
  `;

  GM_addStyle(css);
}