Created
April 17, 2025 13:22
-
-
Save rwilcox/ffcf008ef51ec9592ff79763db591662 to your computer and use it in GitHub Desktop.
workona_hide_sidebar
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Hide Workona Sidebar | |
// @namespace workona | |
// @version 1.0 | |
// @description Hides the element with the id "sidebar" | |
// @match https://workona.com/0/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
function hideSidebar() { | |
var sidebar = document.getElementById('sidebar'); | |
if (sidebar) { | |
sidebar.style.display = 'none'; | |
} | |
} | |
function overrideClick() { | |
var helpElement = document.getElementById('dock-help-icon') | |
if (helpElement) { | |
if (helpElement.classList.contains("rpw-seen")) { | |
return | |
} | |
helpElement.classList.add('rpw-seen') | |
helpElement.addEventListener('click', hideSidebar) | |
} | |
} | |
//setInterval(hideSidebar, 5000); | |
// TODO: replace me with https://gist.github.com/BrockA/2625891 | |
// the wait for key element thing | |
setInterval(overrideClick, 5000) | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment