Advertisement
shygirl1999

Eve Forums Portal Menu

Jul 13th, 2017
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Eve Forums Portal Menu
  3. // @namespace    erika-mizune-eve-forums-portal-menu
  4. // @version      1.0
  5. // @description  Just a script to add a portal menu to the navigation.
  6. // @author       Erika Mizune
  7. // @match        https://forums.eveonline.com/*
  8. // @grant        none
  9. // ==/UserScript==
  10.  
  11. /*jshint multistr: true */
  12.  
  13. $('head').append(
  14.     '\
  15. <style>\
  16. .dropdown {position: relative;display: inline-block;}\
  17. .dropdown-evemenu {display: none;position: absolute;margin-left: -110px;text-align: right;background-color: #0c0c0c;min-width: 175px;z-index: 1;}\
  18. .dropdown-evemenu a {padding: 12px 16px;text-decoration: none;display: block;}\
  19. .dropdown-evemenu a:hover {background-color: #373737;}\
  20. .dropdown:hover .dropdown-evemenu {display: block;}\
  21. .dropdown:hover .dropbtn {background-color: #0c0c0c;color: #2980b9 !important;}\
  22. .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;}\
  23. .d-header .icons .unread-notifications {right: 60px !important;}\
  24. </style>\
  25. '
  26. );
  27.  
  28. $(document).ready(function() {
  29.     $('.d-header .icons:last').append(
  30.         '\
  31. <div class="dropdown">\
  32. <img class="btn-menu" src="http://i.imgur.com/cQQ2Hod.png" height="40" width="40">\
  33. <div class="dropdown-evemenu">\
  34. <a href="http://www.eveonline.com/">EVE Online</a>\
  35. <a href="http://community.eveonline.com/">Community</a>\
  36. <a href="http://community.eveonline.com/news/dev-blogs/">Dev Blogs</a>\
  37. <a href="https://gate.eveonline.com/">EVE Gate</a>\
  38. <a href="https://secure.eveonline.com/">Account Management</a>\
  39. <a href="http://support.eveonline.com/">Support</a>\
  40. <a href="http://store.eve.com/">EVE Store</a>\
  41. <a href="http://updates.eveonline.com/">Latest Release</a>\
  42. <a href="https://developers.eveonline.com/">EVE Developers</a>\
  43. </div></div>\
  44. '
  45.     );
  46. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement