FANDOM


This is the talk page for discussing improvements to the Board:Script Suggestions/@comment-168424-20170720234946 page.

I created some simple personal JS to add 3 links to favorite wikis, but I couldn't figure out how to add a submenu.

I also noticed that the profile menu seems to have a fixed height, likely from some upstream CSS that I didn't want to mess with.

Here's my simple (non submenu) JS:

/* Add three favorite wikis links to profile menu in modernized UI */
$(function () {
	$('div.wds-global-navigation__user-menu > div.wds-global-navigation__dropdown-content > ul.wds-list > li:nth-child(3)').not('#MyFavWikis').before('<li id="MyFavWikis" style="padding-top:0.8em;"><span style="color:gray; padding:0 0 0.8em 0.6em;">My Favorite Wikis</span><div class="wds-is-not-scrollable" style="font-size:80%; line-height:120%; padding:0.5em 0 0.5em 2.6em;"><a href="http://downtonabbey.wikia.com/" class="wds-global-navigation__dropdown-link" data-tracking-label="myfavwikis.1">Downton Abbey Wiki</a><br/><a href="http://expanse.wikia.com/" class="wds-global-navigation__dropdown-link" data-tracking-label="myfavwikis.2">Expanse Abbey Wiki</a><br/><a href="http://wow.wikia.com/" class="wds-global-navigation__dropdown-link" data-tracking-label="myfavwikis.3">WoWWiki</a></div></li>');
});
Community content is available under CC-BY-SA unless otherwise noted.

Fandom may earn an affiliate commission on sales made from links on this page.

Stream the best stories.

Fandom may earn an affiliate commission on sales made from links on this page.

Get Disney+