Skip to content

Instantly share code, notes, and snippets.

@kmaglione
Created January 14, 2012 22:42
Show Gist options
  • Save kmaglione/1613162 to your computer and use it in GitHub Desktop.
Save kmaglione/1613162 to your computer and use it in GitHub Desktop.
let origSetToolbarVisibility = setToolbarVisibility;
setToolbarVisibility = function setToolbarVisibility(elem, visible) {
let res = origSetToolbarVisibility(elem, visible);
if (elem.id == "toolbar-menubar")
doStuff(visible);
return res;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment