cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Accessing Completed Items Directly

For more than a week, eBay has been redirecting users from completed listings to live listings.  This is not a glitch; it is willful malfeaseance.  Since they refuse to fix it, I have fixed it myself.

// ==UserScript==
// @name        Access completed items directly
// @namespace   acid_hermit
// @description Eliminates eBay tracking and redirect nonsense
// @include     https://*.ebay.com/*
// @version     0.2
// @grant       none
// ==/UserScript==
var items = document.querySelectorAll('a[href*=".ebay.com/itm"]');
Array.prototype.forEach.call(items, function(item, index) {
  item.href = item.href.replace(/\/(\d{12})[^\/]*$/,'/$1?nordt=true&orig_cvip=true');
});

What does this quick and dirty user script do?

 

On ebay.com pages, it looks for links to items, strips off all the tracking garbage, and adds parameters to bypass the redirects.  If you click on a completed item, it will take you directly to the original listing without the stupid interstitial or the idiotic redirect to a live listing.  If you click on a live listing, it loads normally -- and if you bookmark it, you can access it directly after it sells or expires.  If you click on an expiring auction, you will not get redirected elsewhere once the clock hits zero.  It makes one little part of eBay work the way it should.

 

Users of the Greasemonkey addon can click New User Script and paste the above code block into the scratchpad.  Greasemonkey experts can probably outdo my quick hack, but since nobody posted a better solution in response to dozens of complaints, I'm posting mine.

Message 1 of 2
latest reply
1 REPLY 1

Accessing Completed Items Directly

Nice. That gets the job done. Globally replace all instances on a page.

Pretty much the same thing as the Redirector rule and manual URL reformat method I posted a few days back that was completely ignored. Nobody can be bothered to proactively take care of the problem - instead we have 100 threads chock full of complaining.

Didn't bother with a GreaseMonkey script for 2 reasons:
1. Problem is more easily solved, and usage and editing easier to control with Firefox Redirector addon.
2. Only 2 people in 5 years (that I'm aware of) have taken the plunge and installed GreaseMonkey to use any scripts posted, so unless for my personal use, I don't bother any more.

The script approach does have the advantage of producing "cleaned" URLS that can be bookmarked directly from the search (or other page), but the Redirector approach also produces clean URLS that can be bookmarked from the target page once loaded. 6 of one, half a dozen of the other = more than 1 way to skin a cat.

At this point, as far as I'm concerned, the whole thing is a non-issue with the Redirector rule in place in my browsers - search transparently functions same as it did a month ago for me.

Sorry to go "cup-half-empty" on you, but I'm pretty annoyed with the lot of them.

Now I just have to start ignoring all these "search is broken" threads (maybe I'll add them to my Annihilator Forum Ignore script 🙂

P.S. I learned something from your script - wasn't even aware of the querySelector method. I've been doing it the hard way chasing elements down the DOM via getElementById/getElementsByClassName/getElementsByTagName.
Message 2 of 2
latest reply