您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Amazonの商品ページのURLを短縮し、アドレスバーを書き換えます。
// ==UserScript== // @name URL shortnizer for Amazon Japan // @version 1.1 // @author Hina // @description Amazonの商品ページのURLを短縮し、アドレスバーを書き換えます。 // @match https://www.amazon.co.jp/dp/* // @match https://www.amazon.co.jp/gp/* // @match https://www.amazon.co.jp/*/dp/* // @match https://www.amazon.co.jp/*/gp/* // @match https://www.amazon.co.jp/*/ASIN/* // @run-at document-end // @noframes // @namespace http://tampermonkey.net/ // ==/UserScript== /*jshint esversion: 6 */ (function() { 'use strict'; function rewriteAddressBar() { const ASINInput = document.querySelector("input[name='ASIN'], input[name='ASIN.0']"); if (!ASINInput) { console.log('ASIN not found.'); return false; } const ASIN = ASINInput.value; history.replaceState(null, null, '/dp/' + ASIN); } rewriteAddressBar(); let target = document.getElementById('title_feature_div'); const observer = new MutationObserver(records => { setTimeout(rewriteAddressBar, 5000); }); observer.observe(target, { childList: true }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址