NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name BrowserStack reduce // @version 0.1 // @description Reduces the BrowserStack tools // @author Maxime Peloquin // @match https://www.browserstack.com/* // @grant none // ==/UserScript== function anchorClicked(){ toggle_visibility(document.querySelector("#dock ul")); document.getElementById("dock").style.height = "auto"; } function toggle_visibility(e) { if(e.style.display == 'none') e.style.display = 'block'; else e.style.display = 'none'; } var reduce = document.createElement("a"); reduce.id = "reduce"; reduce.href = "#"; reduce.style.height = "20px"; reduce.style.width = "100%"; reduce.style.background = "#d6d6d6"; reduce.style.float = "left"; reduce.style.borderRadius = "0 0 4px 4px"; reduce.onclick = anchorClicked; document.getElementById("dockStopTesting").style.borderRadius = "0 0 0 0"; document.getElementById("dock").appendChild(reduce);