Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Eve Forums Portal Menu
- // @namespace erika-mizune-eve-forums-portal-menu
- // @version 1.0
- // @description Just a script to add a portal menu to the navigation.
- // @author Erika Mizune
- // @match https://forums.eveonline.com/*
- // @grant none
- // ==/UserScript==
- /*jshint multistr: true */
- $('head').append(
- '\
- <style>\
- .dropdown {position: relative;display: inline-block;}\
- .dropdown-evemenu {display: none;position: absolute;margin-left: -110px;text-align: right;background-color: #0c0c0c;min-width: 175px;z-index: 1;}\
- .dropdown-evemenu a {padding: 12px 16px;text-decoration: none;display: block;}\
- .dropdown-evemenu a:hover {background-color: #373737;}\
- .dropdown:hover .dropdown-evemenu {display: block;}\
- .dropdown:hover .dropbtn {background-color: #0c0c0c;color: #2980b9 !important;}\
- .btn-menu {border: none;font-weight: normal;font-family: "ProximaNova-SemiBold", Arial, sans-serif;background-color: transparent;color: #acacac;margin-top: -5px;padding: 6px 10px;}\
- .d-header .icons .unread-notifications {right: 60px !important;}\
- </style>\
- '
- );
- $(document).ready(function() {
- $('.d-header .icons:last').append(
- '\
- <div class="dropdown">\
- <img class="btn-menu" src="http://i.imgur.com/cQQ2Hod.png" height="40" width="40">\
- <div class="dropdown-evemenu">\
- <a href="http://www.eveonline.com/">EVE Online</a>\
- <a href="http://community.eveonline.com/">Community</a>\
- <a href="http://community.eveonline.com/news/dev-blogs/">Dev Blogs</a>\
- <a href="https://gate.eveonline.com/">EVE Gate</a>\
- <a href="https://secure.eveonline.com/">Account Management</a>\
- <a href="http://support.eveonline.com/">Support</a>\
- <a href="http://store.eve.com/">EVE Store</a>\
- <a href="http://updates.eveonline.com/">Latest Release</a>\
- <a href="https://developers.eveonline.com/">EVE Developers</a>\
- </div></div>\
- '
- );
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement