Forum:Renew hide rail code

I found an old code for hiding buttoms for the rail. Saidly it's an bit old and will now cause bugs:
 * On some pages the buttom will apear 2 times
 * The expand buttom should be able to make your content again visible without reloading your page. (toggle)

At the risk of starting a "whose code is better" fight. I wrote my own script to do this a few weeks ago after being disappointed with the ones I found floating around. This script also sort of works on Edit pages as well, for hiding the EditRail. Lunarity 13:07, August 3, 2012 (UTC)