您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Cleans AliExpress product URLs by removing unnecessary query strings and fragments.
// ==UserScript== // @name AliExpress Link Cleaner // @namespace http://aliexpress.com/ // @version 1.3 // @description Cleans AliExpress product URLs by removing unnecessary query strings and fragments. // @match *://*.aliexpress.com/item/* // @match *://*.aliexpress.*.*/item/* // @match *://aliexpress.us/item/* // @icon https://ae01.alicdn.com/kf/S05616f829f70427eb3389e1489f66613F.ico // @grant none // @run-at document-start // @license Non-Commercial Use Only // ==/UserScript== (function () { 'use strict'; const currentUrl = window.location.href; const url = new URL(currentUrl); // Cleaned URL = origin + pathname (removes ? and #) const cleanedUrl = url.origin + url.pathname; if (currentUrl !== cleanedUrl) { window.location.replace(cleanedUrl); } })();