RestoreRightRail adds the right rail to any rail-less pages to allow uninterrupted access to "Page Tools" and "Recent Wiki Activity" (if logged in), and "Popular Pages" (if logged out). Unlike the regular rail, there is no tracking involved because it doesn't feel right to track a custom rail.
The original rail code can be found in Fandom's JS modules (skin.fandomdesktop.rail.lazyRail.js and skin.fandomdesktop.rail.toggle.js).
Installation
Notes
- Currently has anon support, but it might not make sense to do so if this is not permitted site-wide.
- Calls
cm.refresh();when the rail is restored and when toggled. Usecm.on("refresh",function(CodeMirror){});if you ever need to handle refresh.
Text above can be found here (edit)