New version 0.4, fixing spacing issues.
Since Tenb changed the spacing of items in the right pane of the gallery page I needed to move the button that activates the switch between the tagging and search modes. Now the button is placed above the tittle.
Compatibility note: Since most of the gallery page is measured in pixels there is little space where placing new elements will not mangle the layout. To add more buttons (from other scripts) I suggests placing 'inline-block' buttons above the title, this way the buttons will line together above the title. Something like:
CODE
var title_pane = document.querySelector('#gd2');
// ... build button
button.style.display = 'inline-block';
title_pane.insertBefore(button, title);
This is pretty much what this script does, and if other script work in a similar fashion buttons should align.