I was inspired by this post to try to think in XMR instead of United States Dollar or any other fiat currency.

This user script will detect anything that looks like $XX.XX from web pages, and send it to the coinmarketcap api to lookup the current XMR price.

Privacy beware

You are sending any dollar value that appears in your browser to Coin Market Cap including values that might appear in your banking websites. If you don’t want Coin Market Cap to know how much you have in the bank, then edit the script to only work on white listed websites or blacklist certain websites.

Be careful with using user scripts, do not trust me or anyone else that tells you to paste some code in a user script on your browser. Please read the source code, it isn’t that long.

How to install

  1. Install a user script extension such as Violent Monkey
  2. Click the Violent Monkey button
  3. New Script
  4. Paste the code from the gist
  5. Get a coinmarketcap api and paste it on the appropriate line
  6. Save and close

Dollar values will now appear as XMR values!

  • ArseneSpeculoos
    link
    fedilink
    arrow-up
    1
    ·
    4 hours ago

    The first part of the privacy disclaimer is not correct.
    If you use this script, CoinMarketCap will not know about any amount displayed on your browser, they will not know about how much you have in your bank account when you visit your banking website with this script.

    The second part is very correct, be careful using random people 's scripts, read the source code to see what it really does.