| There is no RationalWiki without you. We are a small non-profit with no staff – we are hundreds of volunteers who document pseudoscience and crankery around the world every day. We will never allow ads because we must remain independent. We cannot rely on big donors with corresponding big agendas. We are not the largest website around, but we believe we play an important role in defending truth and objectivity. If everyone seeing this today donates $5, we will meet our goal for 2019. |
Fighting pseudoscience isn't free. We are 100% user-supported! Help and donate $5, $20 or whatever you can today with |
AD says you have JavaScript experience
The highlighted comment was created in this revision.
User:Inquisitor Ehrenstein/myDocuments.js
I'm working on a script that will add a My documents link to the top user link bar that when clicked will being up a fixed position menu of various links to userspace subpages for things like signature pages, lists of userspace scripts, drafts, and that sort of thing.
- You don't need the "configuration variables" section. Check out some other examples of scripts here, or view the source of this page to see the predefined variables you can use.
- You need a line of code in your own /vector.js or whichever skin you use that tells MW to load your script. (addOnloadHook(yourfunction);)
- If you want to have a page that the user will use to define what goes in this menu, you'll need to use the API to grab the contents of that page.
This short script has some examples of what you're looking for.