Skip to content

Instantly share code, notes, and snippets.

@xulapp
Created August 1, 2010 18:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xulapp/503639 to your computer and use it in GitHub Desktop.
Save xulapp/503639 to your computer and use it in GitHub Desktop.
NanoMenu.uc.js
{let a='appendChild',i='insertBefore',c='createElement',n='menu',d=document,b=d.getElementById('main-menubar'),m=d[c](n),p=b[a](m)[a](d[c](n+'popup'));for(b[a]=function(e)p[a](e),b[i]=function(e,r)p[i](e,r);m.id=n+'-'+n;m.setAttribute('accesskey',m.label='Menu'))p[a](b.firstChild)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment