Silk Road forums

Discussion => Silk Road discussion => Topic started by: cbrdck on June 29, 2012, 06:12 am

Title: Greasemonkey script to display paper currencies (USD,EUR,GBP) and cost/gram
Post by: cbrdck on June 29, 2012, 06:12 am
Hi guys,

I thought it would be useful to see the prices in real-world currencies as well as BTC. I started doing just that and from there it kinda got out of control a bit.

So I give you my greasemonkey script:
* Gets the exchange rates from intersango.com
* Adds paper currency column next to BTC price column on category listings.
* * Switch between GBP, EUR and USD by clicking the header link ("<->")
* Adds another column with <currency>/gram cost. This is picked up from title and may not always work, so do not trust implicitly.
* The above are also displayed in item detail and cart page
* In the rest of the pages (home, user, ?), it just adds paper currency next to any BTC values
* Saves the exchange rates and your currency preference in a cookie
* Adds info (active currency, exchange rate) & links (change currency, refresh exchange rate) to bottom of all pages

Maybe someone else will also find this useful. If you have GreaseMonkey installed, get the script from here:

http://userscripts.org/scripts/show/137270

In case you missed it above, **THIS SCRIPT CREATES A COOKIE TO STORE THE CURRENT EXCHANGE RATE AND YOUR PREFERRED CURRENCY**

I also posted this in off topic, not sure if it should be here or there.

edit: If the install button doesn't work for you, right click the install button, click View User Script Source, and you should see a yellow bar with an install button. Alternatively, save to somewhere and load manually.

* It goes without saying, don't visit unless over Tor. Kind of a dead giveaway.
Title: Re: Greasemonkey script to display paper currencies (USD,EUR,GBP) and cost/gram
Post by: Japan1980 on June 29, 2012, 03:14 pm
Sounds perfect  :)

+1
Title: Re: Greasemonkey script to display paper currencies (USD,EUR,GBP) and cost/gram
Post by: Boris Badenov on June 29, 2012, 03:55 pm
Sounds perfect  :)

+1
Not sure about this; this needs to be studied careful.

BB
Title: Re: Greasemonkey script to display paper currencies (USD,EUR,GBP) and cost/gram
Post by: Vendettent on June 29, 2012, 04:29 pm
not trying to accuse OP because i certainly don't believe this but there is always a virus possibility so watch out.
Title: Re: Greasemonkey script to display paper currencies (USD,EUR,GBP) and cost/gram
Post by: cbrdck on June 29, 2012, 07:00 pm
Hi Boris, Vendettent,

I covered this in the other thread: http://dkn255hz262ypmii.onion/index.php?topic=28478.0

The possibility of a virus doesn't really exist, as this is not a binary file, but pure javascript source code.

If someone who knows a bit of JS can take a deep breath (very messy - it just happened) and go through it, I am sure they will tell you the same.

'duck.

EDIT: I don't mean it isn't possible to do malicious stuff in JS, not at all! I am saying it is impossible to hide it and anyone can see if there is maliciousness or not.
Title: Re: Greasemonkey script to display paper currencies (USD,EUR,GBP) and cost/gram
Post by: oscarzululondon on July 03, 2012, 11:13 pm
For anyone wondering the code is safe and clean, this is a good add-on.

It's certainly not the most efficient code I've ever seen however!  ;)

OZ
Title: Re: Greasemonkey script to display paper currencies (USD,EUR,GBP) and cost/gram
Post by: Christy Nugs on July 04, 2012, 01:10 am
add on's are verboten!! u can add them to regular ff browser but dont run both because of leakage!!
Title: Re: Greasemonkey script to display paper currencies (USD,EUR,GBP) and cost/gram
Post by: oscarzululondon on July 04, 2012, 03:35 pm
add on's are verboten!! u can add them to regular ff browser but dont run both because of leakage!!

add on's are forbidden yet the Tor browser bundle runs several by default anyway? There's no leakage from the code the guy provided, other than possibly at the Intersango end, although if you're running through Tor you're fine. Intersango are just going to start wondering why they're getting loads of API requests through Tor, although that isn't too unusual given the nature of their business.
Title: Re: Greasemonkey script to display paper currencies (USD,EUR,GBP) and cost/gram
Post by: vlad1m1r on July 04, 2012, 06:05 pm
For anyone wondering the code is safe and clean, this is a good add-on.

It's certainly not the most efficient code I've ever seen however!  ;)

OZ

Looks clean to my untrained eye but then the most complex thing I designed in js was a calculator..

V.
Title: Re: Greasemonkey script to display paper currencies (USD,EUR,GBP) and cost/gram
Post by: henrich414 on July 04, 2012, 08:14 pm
I'm a huge nerd when it comes to browser extensions etc but I'll err on the side of caution for this one.

Cool idea though.
Title: Re: Greasemonkey script to display paper currencies (USD,EUR,GBP) and cost/gram
Post by: ZenAndTheArt on July 11, 2012, 01:15 am
This add-on is fucking brilliant!!! I highly recommend. Been using it for a week or so now, and it's greatly improved my Silk Road experience.
Could one of the mods maybe pin this thread to the top of the board please, maybe in the Feature Requests forum. If that's an OK thing to do. I think many users would be grateful to be able to use this add-on. :)