trumad / SF testing

// ==UserScript==
// @name         SF testing
// @namespace    Thanael
// @version      0.1
// @description  Remove that dumb triangle pointing down that floats near the top of the page, at the centre, and pulls down a dumb menu if you click it accidentally.

// @author       You
// @grant GM_addStyle
//@grant addGlobalStyle
// @match        https://na57.salesforce.com/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Remove that dumb triangle pointing down that floats near the top of the page, at the centre, and pulls down a dumb menu if you click it accidentally.

    function addGlobalStyle(css) {
    var head, style;
    head = document.getElementsByClassName('x-layout-mini x-layout-mini-north')[1];
    if (!head) { return; }
    style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = css;
    head.appendChild(style);
}
    var dumbArrow = ".x-layout-collapsed-north.x-layout-collapsed-over .x-layout-mini-north,.sd_secondary_tabpanel .x-layout-collapsed-south .x-layout-mini,.sd_primary_container .x-layout-collapsed-north .x-layout-mini,.sd_secondary_tabpanel .x-layout-collapsed-north .x-layout-mini,.sd_primary_container .x-splitbar-v .x-layout-mini,.sd_primary_container .x-layout-collapsed-south .x-layout-mini,.sd_secondary_tabpanel .x-splitbar-v .x-layout-mini{width:0px;height:0px;filter:none;!important;}";
    addGlobalStyle(dumbArrow);
//todo - bind this function to an onmouseover event on the body of every damn page in SF so this stops appearing on case load.
})();