User:Weeklyd3/scripts/linkRemover
Appearance
< User:Weeklyd3 | scripts
I created this script because the links on the left were getting a bit too cluttered. By default, it hides the following links:
Links hidden
Main menu
- Contents
- Current events
- About Wikipedia
- Contact us
- Donate
Contribute
- Help
- Learn to edit
- Community portal
Tools
- Mute this user (only available on userpages)
How to Install
Add the following to User:your name/common.js:
{{subst:lusc|User:I.hate.spam.mail.here/linkRemover.js}}
Customizing hidden links
You can customize your hidden links by modifying globalThis.hiddenLeft
. It will override the default hidden links.
You should open the Developer Tools and find the ids of the list items you want to hide, then make an array of those ids and assign globalThis.hiddenLeft with that value.
Example:
globalThis.hiddenLeft = ["t-mute"];
mw.loader.load( '/w/index.php?title=User:I.hate.spam.mail.here/linkRemover.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:I.hate.spam.mail.here/linkRemover.js]]
// note that you have to override them before loading the user script.