Userscript.gmail-ui is a project mainly written in JavaScript, it's free.
UI tweaks to Gmail's "Preview" theme.
This is Gmail's new "Preview" theme with tighter margins/padding/line-height, larger next/prev buttons and misc. other pixel shifting. Tested to work in Chrome, Safari with GreaseKit, Mailplane, and Firefox.