Show the shortest possible URL for Ebay items.
< 脚本Ebay URL Cleaner/ shorter的反馈
This version fixes the endless reload loop when selecting item specifics:
// ==UserScript== // @name Ebay URL Cleaner/ shorter // @description Show the shortest possible URL for Ebay items. // @namespace https://arantius.com/misc/greasemonkey/ // @match https://www.ebay.com/itm/* // @run-at document-start // @version 1.1 // @grant none // @icon https://pages.ebay.com/favicon.ico // ==/UserScript== function getProductId() { var m; m = document.location.href.match(/(?:.+\/)?itm\/([^/?]+)/); if (m) return m[1]; } function getVariant() { var m; m = document.location.search.match(/var=\d+/); if (m) return '?' + m[0]; else return ''; } var productId = getProductId(); if (productId) { var url = 'https://www.ebay.com/itm/' + productId + getVariant(); if (location.href != url) { history.replaceState({}, document.title, url); } }
登录(不可用)以发表回复。
土豆服务器,请按需使用
镜像地址随时可能被墙,建议加群获取最新地址
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址
This version fixes the endless reload loop when selecting item specifics: