MyAnimeList(MAL) - Profile navigationbar

Add a navigation bar at the top of your profile

  1. // ==UserScript==
  2. // @name MyAnimeList(MAL) - Profile navigationbar
  3. // @version 1.0.6
  4. // @description Add a navigation bar at the top of your profile
  5. // @author Cpt_mathix
  6. // @match https://myanimelist.net/profile/*
  7. // @exclude https://myanimelist.net/profile/*/*
  8. // @grant none
  9. // @namespace https://gf.qytechs.cn/users/16080
  10. // ==/UserScript==
  11.  
  12. var user = document.getElementsByTagName('title')[0].textContent.replace("\'s Profile - MyAnimeList.net", "");
  13.  
  14. var content = document.getElementsByClassName('container-right')[0];
  15. var navigation = document.createElement('div');
  16.  
  17. content.insertBefore(navigation, content.firstChild);
  18.  
  19. var string = '<div id="horiznav_nav" style="margin: 5px 0 10px;">';
  20. string += '<ul>';
  21. string += '<li><a href="/profile/' + user + '" class="horiznav_active">Home</a></li>';
  22. string += '<li><a href="/profile/' + user + '/statistics">Statistics</a></li>';
  23. string += '<li><a href="/profile/' + user + '/favorites">Favorites</a></li>';
  24. string += '<li><a href="/profile/' + user + '/reviews">Reviews</a></li>';
  25. string += '<li><a href="/profile/' + user + '/recommendations" rel="nofollow">Recommendations</a></li>';
  26. string += '<li><a href="/profile/' + user + '/stacks">Interest Stacks</a></li>';
  27. string += '<li><a href="/profile/' + user + '/clubs">Clubs</a></li>';
  28. string += '<li><a href="/profile/' + user + '/badges">Badges</a></li>';
  29. string += '<li><a href="/profile/' + user + '/friends">Friends</a></li>';
  30. string += '</ul>';
  31. string += '</div>';
  32.  
  33. navigation.outerHTML = string;

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址