您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
網址只留下識別碼
当前为
// ==UserScript== // @name 縮減蝦皮網址 // @namespace http://greasyfork.icu/zh-TW/scripts/457084 // @match *shopee.tw/* // @author czh // @icon https://www.google.com/s2/favicons?sz=64&domain=shopee.tw // @run-at document-start // @license GNU GPLv3 // @description 網址只留下識別碼 // @version 0.0.1.7 // ==/UserScript== var urlMatch = location.href.match(/.*\-i\.(\d+)\.(\d+)/); if (urlMatch && !location.href.includes("0-i.")) { var url = location.href.replace(/.*-i\.(\d+)\.(\d+)\?.*/, "0-i.$1.$2"); if (url !== location.href) { location.replace(url); } }