eBay currency converter

By Henrik N Last update Aug 29, 2005 — Installed 3,286 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 10 posts, 6 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
rfsimoes User

the hell with it...
you have this
http://userscripts.org/scripts/review/4827
and this
http://userscripts.org/scripts/show/2600
a bit slow but it is auto-updatable and works everywhere.

 
Tommy Jensen User

rfsimoes:
8< cut and paste this into the script in between any of the currency conversions for £ conversion.
Please note that I'm not a script author, I trail and errored until this worked for me :)

// GBP 2
if (s.match(/£\d+\.\d+/)) {
var GBP = s.replace(/(.*£)(\d+\.\d+)(.*)/, '$2'); // Extract
var myCurrency = roundC(GBP * perGBP); // Convert
s = s.replace(/(£)(\d+\.\d+)/, '$1$2 ('+ myCurrencyPrefix + myCurrency + myCurrencySuffix +')'); // Replace
}

 
rfsimoes User

Now i've got it. is just not working in ebay.co.uk because there is no match with the £.
Could any one post the if (s.match..... for pouds?

 
rfsimoes User

Is it just me or this script doesn't work at all?
I've tried ebay.com ebay.co.uk and ebay.es and nothing ever hapens.
Is there a debuger I can use to go throw the code?

 
Henrik N Script's Author

Auto-update would definitely be cool. I'll add it to my todo list (which is, alas, rather long).

 
Tommy Jensen User

This script kicks ass!
I've also added EUR along with "£" since brittish pounds was only recognised through GBP which obviously is not the case on ebay.co.uk .
Maybe you could include this in a newer version?
And like Plawer said, an auto-update would be a dream...

 
darshil Scriptwright

awesome!

 
Plawer User

Another bug: Prices on Ebay sites using comma as decimal symbol are not converted (e.g. ebay.de, ebay.at)

 
Plawer User

Great tool. I've added EUR currency to my own. One bug: Prices over 999.99 are not calculated.
One suggestion: Use XML data from the European Central Bank so the user only has to update his own home currency once, and data is kept consistent. http://www.ecb.int/stats/eurofxref/eurofxref-da...

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel