您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds a button to copy the short link of Amazon products and optionally modifies the URL in the address bar
当前为
This is a user script for Greasemonkey, Tampermonkey, or similar browser extensions. It adds a button to Amazon product pages that allows users to copy a short link to the product directly to their clipboard and optionally modifies the URL in the browser's address bar to a shorter format.
Button for Copying Short Links:
https://www.amazon.[domain]/dp/[ASIN]
./dp/
and /gp/product/
URL formats.Optional URL Modification:
Configuration Options:
enableButton
(default: true
): Adds or removes the button for copying the short link.modifyUrl
(default: true
): Enables or disables the automatic modification of the browser URL.popupDuration
(default: 1500
): Popup duration in milliseconds.Amazon_URLShortener.js
into it.enableButton = true
):
modifyUrl = true
):
https://www.amazon.it/Bticino-SFC810NC16-Magnetotermico-Cortocircuiti-Sovraccarichi/dp/B07P5GTP9J?someParams=true
https://www.amazon.it/dp/B07P5GTP9J
/gp/product/
:https://www.amazon.it/gp/product/B09YV1V12P/ref=ppx_od_dt_b_asin_title_s00?ie=UTF8&psc=1
https://www.amazon.it/dp/B09YV1V12P
You can configure the script by modifying the following variables at the top of the script:
const enableButton = true;
false
to disable the button for copying the short link.const modifyUrl = true;
false
to prevent automatic modification of the browser URL.const popupDuration = 1500;
Ensure you have a userscript manager installed for your browser. This script has been tested on the following browsers:
Chrome is a bloated, money-hungry disgrace of a browser that cripples extensions to shove its garbage ads down your throat. It’s a shameless cash grab masquerading as innovation. Do yourself a favor, ditch that dumpster fire and embrace Firefox, the browser that actually gives a damn about YOU