Description | Create a fixed button to go to the top of the page. To Top Button adds a fixed button to the bottom right of the screen. Replaces the one on mobile Wikipedia. |
---|---|
Author(s) | User:BrandonXLF |
Status | Working |
First released | April 21, 2019 |
Source | ToTopButton.js (git) ToTopButton.css (git) |
GitHub repository | wikipedia-user-scripts |
To Top Button adds a fixed button to the bottom right of the screen. Replaces the one on mobile Wikipedia.
importScript('User:BrandonXLF/ToTopButton.js'); // [[User:BrandonXLF/ToTopButton.js]]
mw.loader.load('/w/index.php?title=User:BrandonXLF/ToTopButton.js&action=raw&ctype=text/javascript'); // [[User:BrandonXLF/ToTopButton.js]]
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:BrandonXLF/ToTopButton.js&action=raw&ctype=text/javascript');
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.