AliExpress Link Cleaner

Removes unnecessary parameters from AliExpress product links.

  1. // ==UserScript==
  2. // @name AliExpress Link Cleaner
  3. // @namespace http://aliexpress.com/
  4. // @version 1.1
  5. // @description Removes unnecessary parameters from AliExpress product links.
  6. // @match *://*.aliexpress.com/*
  7. // @grant none
  8. // @icon https://ae01.alicdn.com/kf/S05616f829f70427eb3389e1489f66613F.ico
  9. // @run-at document-start
  10. // @license Non-Commercial Use Only
  11. // ==/UserScript==
  12.  
  13. document.addEventListener('DOMContentLoaded', () => {
  14. linkFix();
  15. });
  16.  
  17. function linkFix() {
  18. const currentUrl = window.location.href;
  19. const cleanedUrl = currentUrl.split('?')[0]; // Remove query parameters
  20.  
  21. if (cleanedUrl !== currentUrl) {
  22. window.location.replace(cleanedUrl);
  23. }
  24. }

QingJ © 2025

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