User:BrandonXLF/FloatSide
Appearance
Description | Makes side menu float Float Side makes the side menu float. You can stroll through the side menu still using the scroll bar. |
---|---|
Author(s) | User:BrandonXLF |
Status | Working |
First released | January 9, 2018 |
Skins | All |
Source | FloatSide.js (git) FloatSide.css (git) |
GitHub repository | wikipedia-user-scripts |
Float Side makes the side menu float. You can stroll through the side menu still using the scroll bar.
Installation
You can install this script using JavaScript (JS) or Cascading Style Sheets (CSS). CSS will allow the script to run right at load whereas JS may have a delay before applying, this means the scripts style won't work instantly using JS but will using CSS.
Using JS
importStylesheet('User:BrandonXLF/FloatSide.css'); // [[User:BrandonXLF/FloatSide.css]]
- Alternatively, use the following instead of the above:
mw.loader.load('/w/index.php?title=User:BrandonXLF/FloatSide.css&action=raw&ctype=text/css', 'text/css'); // [[User:BrandonXLF/FloatSide.css]]
- To install on other wikis (for instance, globally in your global.js on the Meta-Wiki), use the following code:
mw.loader.load('https://wiki.riteme.site/w/index.php?title=User:BrandonXLF/FloatSide.css&action=raw&ctype=text/css', 'text/css');
- After installing reload the page and clear your cach
Using CSS
- Add the following to your common.css or your skin.css AT THE TOP (but after @charset):
@import url(https://wiki.riteme.site/w/index.php?title=User:BrandonXLF/FloatSide.css&action=raw&ctype=text/css); /* [[User:BrandonXLF/FloatSide.css]] */
- After installing reload the page and clear your cace
Comments/Bugs
Comments are welcome on my talk page, be sure to indicate that you're talking about this script in the title. I would really like any suggestion to make the script run better.