Amazon Vine Menu Link (Account Dropdown)

Add Amazon Vine link to the Account & Lists dropdown under Your Account on all Amazon domains

  1. // ==UserScript==
  2. // @name Amazon Vine Menu Link (Account Dropdown)
  3. // @namespace https://gf.qytechs.cn/en/users/50935-neonhd
  4. // @version 1.3
  5. // @author NeonHD
  6. // @description Add Amazon Vine link to the Account & Lists dropdown under Your Account on all Amazon domains
  7. // @match https://www.amazon.com/*
  8. // @match https://www.amazon.ca/*
  9. // @match https://www.amazon.co.uk/*
  10. // @match https://www.amazon.de/*
  11. // @match https://www.amazon.fr/*
  12. // @match https://www.amazon.it/*
  13. // @match https://www.amazon.es/*
  14. // @match https://www.amazon.in/*
  15. // @match https://www.amazon.com.au/*
  16. // @match https://www.amazon.com.br/*
  17. // @match https://www.amazon.com.mx/*
  18. // @match https://www.amazon.nl/*
  19. // @match https://www.amazon.pl/*
  20. // @match https://www.amazon.sg/*
  21. // @match https://www.amazon.tr/*
  22. // @match https://www.amazon.ae/*
  23. // @match https://www.amazon.se/*
  24. // @match https://www.amazon.sa/*
  25. // @match https://www.amazon.be/*
  26. // @match https://www.amazon.eg/*
  27. // @match https://www.amazon.cn/*
  28. // @match https://www.amazon.jp/*
  29. // @grant none
  30. // @license MIT
  31. // ==/UserScript==
  32.  
  33. (function() {
  34. 'use strict';
  35. function addVineLink() {
  36. // Find the "Your Account" section's <ul>
  37. const ul = document.querySelector('#nav-al-your-account ul');
  38. if (ul && !ul.querySelector('.amazon-vine-link')) {
  39. const li = document.createElement('li');
  40. const link = document.createElement('a');
  41. // Dynamically construct the Vine link for the current Amazon domain
  42. const vineUrl = window.location.origin.replace(/\/$/, '') + '/vine/';
  43. link.href = vineUrl;
  44. link.textContent = 'Amazon Vine';
  45. link.className = 'amazon-vine-link nav-link nav-item';
  46. link.style.color = 'rgb(68, 68, 68)';
  47. link.style.fontWeight = 'bold';
  48. li.appendChild(link);
  49. ul.appendChild(li); // Add at the end
  50. }
  51. }
  52. // Listen for mouseover on the Account & Lists menu
  53. document.getElementById('nav-link-accountList')?.addEventListener('mouseenter', addVineLink);
  54. // Also run on focus for accessibility
  55. document.getElementById('nav-link-accountList')?.addEventListener('focusin', addVineLink);
  56. })();

QingJ © 2025

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