User:Weeklyd3/scripts/linkRemover
| If you are a new user, you might be better off not installing this script until you get more experienced, as it hides some of the links that are helpful to new users. |
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:
mw.loader.load('/w/index.php?title=User:I.hate.spam.mail.here/linkRemover.js&action=raw&ctype=text/javascript');
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.
Here are some of the IDs of the links (a full list is available at Special:HideLinks for those with the script installed):
| Link text | ID | Hidden by default? |
|---|---|---|
| Main Page | n-mainpage-description | No |
| Contents | n-contents | Yes |
| Current events | n-currentevents | Yes |
| Random article | n-randompage | No |
| About Wikipedia | n-aboutsite | Yes |
| Contact Us | n-contactpage | Yes |
| Donate | n-sitesupport | Yes (sorry.) |
| Help | n-help | Yes |
| Learn to edit | n-introduction | Yes |
| Community Portal | n-portal | Yes |
| Recent Changes | n-recentchanges | No |
| Upload file | n-upload | No |
| What links here | t-whatlinkshere | No |
| Related changes | t-recentchangeslinked | No |
| Special pages | t-specialpages | No |
| Permanent link | t-permalink | No |
| Page information | t-info | No |
| Wikidata item | t-wikibase | No |
Example:
globalThis.hiddenLeft = ["t-mute"];
mw.loader.load( '/w/index.php?title=User:weeklyd3/linkRemover.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:weeklyd3/linkRemover.js]]
// note that you have to override them before loading the user script.
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.