您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
縮短蝦皮有中文的網址
// ==UserScript== // @name shopee-share // @namespace ticket-check_AndrewWang // @version 0.0.1 // @description 縮短蝦皮有中文的網址 // @icon https://www.google.com/s2/favicons?sz=64&domain=shopee.tw // @author AndrewWang // @match https://shopee.tw/* // @run-at document-start // @license GPL-3.0 // ==/UserScript== (function() { 'use strict'; setTimeout(() => { var urlMatch = location.href.match(/.*\-i\.(\d+)\.(\d+)/); if (urlMatch) { var url = `https://shopee.tw/product/${urlMatch[1]}/${urlMatch[2]}`; if (url !== location.href) { location.replace(url); } } }, 1000); })();