Skip to content

Instantly share code, notes, and snippets.

@rwilcox
Created April 17, 2025 13:22
Show Gist options
  • Save rwilcox/ffcf008ef51ec9592ff79763db591662 to your computer and use it in GitHub Desktop.
Save rwilcox/ffcf008ef51ec9592ff79763db591662 to your computer and use it in GitHub Desktop.
workona_hide_sidebar
// ==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