Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

eBay Link Cleaner

A tiny and focused UserScript (for Violentmonkey/Tampermonkey) that converts eBay product-page links under /p/... that contain an ?iid= parameter into canonical item links under /itm/.... It preserves your current regional eBay domain (like .com, .de, .co.uk) and runs at document-start to avoid loading the heavier product page.

Features

  • Automatically redirects from product pages like /p/…?iid=123456789012 to /itm/123456789012
  • Preserves protocol and regional domain (e.g., https://www.ebay.de remains https://www.ebay.de)
  • Validates the iid parameter to avoid bad redirects
  • Uses location.replace so your browser history won’t be cluttered
  • Runs at document-start for instant effect

Installation

Option A — One‑click via raw URL (recommended)

  1. Install Violentmonkey (recommended) or Tampermonkey.
  2. Open this raw install/update URL in your browser and confirm the installation: https://raw.githubusercontent.com/IceCuBear/EBayLinkCleaner/refs/heads/main/EBayLinkCleaner.user.js

Option B — Manual

  1. Install Violentmonkey or Tampermonkey.
  2. Create a new userscript and paste the contents of EBayLinkCleaner.user.js.
  3. Save and enable the script.

Usage

Just browse eBay as usual. When you land on a product page under /p/... that includes an ?iid= parameter, the script will immediately redirect you to the direct item URL under /itm/<iid> while keeping your current regional eBay domain.

Examples:

  • https://www.ebay.com/p/11223344?iid=112233445566https://www.ebay.com/itm/112233445566
  • https://www.ebay.de/p/11223344?iid=112233445566https://www.ebay.de/itm/112233445566

Notes

  • The script performs a simple sanity check on the iid (digits only, reasonable length). If the parameter is missing or invalid, no redirect occurs.
  • Redirection uses window.location.replace(...) to avoid leaving the /p/ URL in your back‑history.
  • The script is intentionally minimal — no storage, no UI, no grants.

License

Licensed under the GNU AGPLv3.

You are free to use, modify, and share this software under the terms of the AGPLv3. If you run a modified version as a network service, the AGPL requires that you make your modified source code available to users interacting with that service. Contributions and pull requests are welcome.

About

Automatically converts eBay product-page links (with /p/... and ?iid=...) into item links (/itm/...)

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages