Amazon URL Shortener

Adds a button to copy the short link of Amazon products and optionally modifies the URL in the address bar

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği yüklemek için Tampermonkey gibi bir uzantı yüklemeniz gerekir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

Bu stili yüklemek için Stylus gibi bir uzantı yüklemeniz gerekir.

Bu stili yüklemek için Stylus gibi bir uzantı kurmanız gerekir.

Bu stili yükleyebilmek için Stylus gibi bir uzantı yüklemeniz gerekir.

Bu stili yüklemek için bir kullanıcı stili yöneticisi uzantısı yüklemeniz gerekir.

Bu stili yüklemek için bir kullanıcı stili yöneticisi uzantısı kurmanız gerekir.

Bu stili yükleyebilmek için bir kullanıcı stili yöneticisi uzantısı yüklemeniz gerekir.

(Zateb bir user-style yöneticim var, yükleyeyim!)

Yazar
Mauro Leprechaun
Günlük kurulumlar
0
Toplam kurulumlar
25
Değerlendirmeler
1 0 0
Versiyon
1.6.4
Oluşturulma
22.01.2025
Güncellenme
09.02.2025
Boyut
10,3 KB
Lisans
GPL v2
Geçerli

Amazon URL Shortener

Description

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.

Features

  • Button for Copying Short Links:

    • Generates a short link in the format: https://www.amazon.[domain]/dp/[ASIN].
    • Detects both /dp/ and /gp/product/ URL formats.
    • Localized button text and alert messages based on the browser's language (Italian or English).
  • Optional URL Modification:

    • Automatically shortens the browser's address bar URL to the short link format when enabled.
  • 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.

Screenshots

  • Example of the button below the product title:

immagine

immagine

Installation

  1. Install a userscript manager such as Greasemonkey or Tampermonkey.
  2. Create a new script and copy the contents of Amazon_URLShortener.js into it.
  3. Save the script and navigate to any Amazon product page to see it in action.

Usage

  1. Open an Amazon product page.
  2. If the button feature is enabled (enableButton = true):
    • Find the button labeled either "Copy Short Link" (English) or "Copia Link Breve" (Italian) below the product title.
    • Click the button to copy the short link to your clipboard.
  3. If the URL modification feature is enabled (modifyUrl = true):
    • The browser's address bar will automatically display the shortened URL.

Examples

Original URL:

https://www.amazon.it/Bticino-SFC810NC16-Magnetotermico-Cortocircuiti-Sovraccarichi/dp/B07P5GTP9J?someParams=true

Shortened URL:

https://www.amazon.it/dp/B07P5GTP9J

Original URL with /gp/product/:

https://www.amazon.it/gp/product/B09YV1V12P/ref=ppx_od_dt_b_asin_title_s00?ie=UTF8&psc=1

Shortened URL:

https://www.amazon.it/dp/B09YV1V12P

Configuration

You can configure the script by modifying the following variables at the top of the script:

  • const enableButton = true;
    • Set to false to disable the button for copying the short link.
  • const modifyUrl = true;
    • Set to false to prevent automatic modification of the browser URL.
  • const popupDuration = 1500;
    • Popup duration in milliseconds.

Compatibility

Ensure you have a userscript manager installed for your browser. This script has been tested on the following browsers:

  • ♡ Firefox ♡
  • Chrome

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

Localization

  • English: The button text and alerts appear in English for non-Italian browsers.
  • Italiano: Il testo del pulsante e gli avvisi appaiono in italiano per i browser impostati in lingua italiana.