Fandom

Wikia Developers Wiki

CustomToolbarLinks

847pages on
this wiki
Add New Page
Talk5 Share
This script adds a new popup menu on the Oasis toolbar next to My Tools that contains a user-specified set of links, which can be internal or external and default to a link to Main Page.

Usage

Default setting:

customPages = [
	['Main Page']
];
importScriptPage('CustomToolbarLinks/code.js', 'dev');

Example setting for this wiki:

customPages = [
	['List of JavaScript Enhancements', 'JS'],
	['Category:Guides'],
	['https://www.google.com/', 'Google'],
	['Help:JavaScript and CSS Cheatsheet', 'Cheatsheet'],
	['Main Page']
];
importScriptPage('CustomToolbarLinks/code.js', 'dev');


The first string in each line is the href to link to - either the title of a page on the wiki it is being used on or a complete external link. The second string, which is optional, is the text to display for that link in the menu; it defaults to the first string.

Comments

Hello! I've visited this wiki before but this is my first contribution. I had an idea that seemed like it might fit in and decided to go for it. Let me know if I did anything incorrectly (I'm not sure if there's a requirement for creating a page). And, of course, suggestions for the script are welcome. I'm not terribly experienced in JavaScript. Thanks!

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.