// ==UserScript== // @name 縮減蝦皮網址 // @namespace // @match http://shopee.tw/* // @match https://shopee.tw/* // @author czh // @icon // @run-at document-start // @license GNU GPLv3 // @description 網址只留下識別碼 // @version 0.0.1 // @downloadURL none // ==/UserScript== var num = location.href.match(/\/.*-i./) if (num == null) { return } else { var nun = location.href.replace (/\/.*-i.(\d+).(\d+).*/, "product\/$1/$2"); location.replace (nun); }