ViewMyCurrency needs a little love

Wednesday, 19th September at 1:50 pm 59 comments

I recently started doing some very interesting contract work for Freebase and poor ViewMyCurrency is feeling terrible neglected. My apologies.

ViewMyCurrency was always open source but I’m planning to host the project somewhere public and encourage other developers to get involved.

Thanks for all your feedback, I hope to release a small update soon.

Advertisements

Entry filed under: Feedback.

Who wants to test ViewMyCurrency 0.3897?

59 Comments

  • 1. Fred  |  Wednesday, 17th October at 1:28 pm

    Thanks for the update!

    Good luck with your work, and looking forward to see the updated VMC 🙂

  • 2. mofle  |  Wednesday, 5th December at 6:08 pm

    Hi, if you don’t have time to work on it anymore.

    What about just making it open source?

    I love the addon, but it’s not gonna work when Firefox 3 is released.

  • 3. Will Moffat  |  Tuesday, 11th December at 7:44 pm

    Hi mofle, the code already is open source, the problem is that it’s the first javascript I ever wrote and I started with Firefox 1. Other developers would probably find kind of scary right now.

    I’m hoping to do a major clean up and a Christmas release.

  • 4. mofle  |  Thursday, 13th December at 8:22 pm

    Hi, that sounds great, i use your extension every day, and couldn’t honestly live without it.

    Have you thought about uploading it to mozdev?

  • 5. chTan  |  Friday, 4th January at 9:29 am

    Thanks will,
    Never leave my home (page) without it.

  • 6. ran  |  Monday, 21st January at 7:19 pm

    It won’t install here… I found what prevented it to be install:
    wiki.mozilla.org/User:Mossop:Fx-Docs:AddonUpdateSecurity

    Could you fix this? I want this again!!

  • 7. Rohit  |  Friday, 1st February at 2:13 pm

    I just luv VMC. For me it is the killer app of Firefox. I was blue when I found the VMC would not work with my updated Firefox and I am extremely happy that I can get VMC at this site.

    Thanks a lot WIll

  • 8. Will Moffat  |  Friday, 1st February at 2:23 pm

    Hi, thanks for the positive comments. I’m still hoping to make a FF3 update soon.

  • 9. Konkhra  |  Tuesday, 11th March at 9:46 pm

    Hi, your extension it’s one of the best that i found for the Firefox. There is other currency extensions, by they are not so good. Your extension has everything i need for currency convert in a webpage. The only problem is that, don’t work on firefox 3 unless we turn off the security updates in firefox (not a good ideia). So, can you make you extension compatible with firefox 3 ?.

    Thanks.

  • 10. T Danson  |  Monday, 24th March at 8:49 am

    Interesting you bring this up. Me and my mates often times argue as to which is better, Firefox or Ie. cleary they’re idiots because Firefox is king of web browsers.

  • 11. Ole  |  Friday, 11th April at 9:51 am

    Only $ conversion works under my Vista (firefox). No problems under XP

  • 12. havik  |  Monday, 14th April at 2:41 pm

    doesnt work properly any more, i was on 3895, now on 3897, when i click auto convert the money is wrong, i have updated the currencies.

    take the american amazon, say something is $20 us, it shows its like $15 australian which is wrong, and the pop up convert thing is wrong also.

    firefox is 2.0.0.13

  • 13. Nero  |  Monday, 14th April at 11:52 pm

    Yep, have had the same problem some time now. Currencies are totally wrong. Using the same FF version and VMC version as the above poster. I hope this can be fixed somehow because this is one extension I can’t live without.

  • 14. Will Moffat  |  Tuesday, 15th April at 12:15 am

    Hi guys, thanks all the bug reports. It must be that Google or WebServiceX has changed it’s output. I’ll try and make a fix for the end of the week.

  • 15. Nelson  |  Tuesday, 15th April at 2:02 am

    Will Moffat: There are some currencies that are currently VERY wrong, but that is a problem from Google or WebSerivceX like you said. Anyways, I would like to suggest for the next version, to have an option to change the currency manually, so when this sort of thing happends, we can change it ourselves until Google or WebSerivceX fixes their bugs.

    Regards

  • 16. Christian  |  Thursday, 17th April at 2:22 pm

    VMC rocks! I have just upgraded to FF 3b5, and found that some of my add-ons no longer work. I now have gestures again, but not having VMC is very annoying! I hope you have time for an update, as this is one of the best add-ons for FF. Thanks! 🙂

  • 17. havik  |  Sunday, 20th April at 6:57 pm

    working again.

  • 18. Lars  |  Tuesday, 6th May at 6:16 pm

    The exchenge rates seem to terribly wrong. And it has been this way some time. It’s too bad, because I use VMC all the time. 😦

  • 19. Rohit Kakar  |  Thursday, 8th May at 4:56 pm

    Regarding the exchange rates. I had the same problem till I changed the server from where the rates are updated. Voila !! it worked.

    VMC is the one application that keeps me with FF. Otherwise I find Opera faster.

  • 20. dexus  |  Sunday, 11th May at 1:02 pm

    It’s really too bad that the author hasn’t made a single comment even since September last year.. Nor has he made the code public, as stated in his last post. VMC is a great tool, and although there are alternatives, none gives you the benefit and ease of use like VMC does. So, this is a plea to the author:

    Will: Please either update the application one more time, at least to give us the option to convert https pages, or make the code public so that another programming whiz may pick up the project.

    I really hope you actually read these posts at least. There are alot of users that love this program, and me, for one, would not have a problem supporting it with a donation as well.

    My 2 cents..

  • 21. Xvan  |  Wednesday, 28th May at 2:05 pm

    Please! update this for FF3 and/or release the code…

  • 22. ME  |  Tuesday, 17th June at 11:37 pm

    need suport for FF3 please

  • 23. Robert  |  Wednesday, 18th June at 11:46 am

    Found a work around. Now it is instalable on FireFox 3

    By default, Firefox 3 prevents users from installing any extensions that do not offer a secure connection for automatic updates. This prevents users from being victims of hijacked update URLs.

    But for developers or people installing extensions they know they can trust, it is a pain.

    Luckily it is easily disabled by:

    1. Enter ‘about:config’ into address bar, hit go
    2. Right click somewhere in the list of keys below. Select New->Boolean
    3. Enter ‘ extensions.checkUpdateSecurity ‘ as the name
    4. Select false as the value
    5. Reattempt installation of your plugin.

  • 25. jose orlando  |  Thursday, 19th June at 3:23 pm

    disabling globally the secure update warning in firefox may be a bad idea, compromised extensions can cripple your system.

    quick hack to install viewmycurrency 0.3897:

    -downlad ViewMyCurrency_v0.3897.xpi.zip file
    – rename ViewMyCurrency_v0.3897.xpi to ViewMyCurrency_v0.3897.xpi.zip
    – open ViewMyCurrency_v0.3897.xpi.zip with winzip
    – view the install.rdf file with a text editor
    – delete the line the tag
    – save the file
    – winzip will ask to update the modified file inside the zip, confirm with Yes
    – rename ViewMyCurrency_v0.3897.xpi.zip to ViewMyCurrency_v0.3897.xpi

  • 26. jose orlando  |  Thursday, 19th June at 3:39 pm

    From what I could understand from the code, the wrong values come from Viewmycurrency not stripping correctly google calculator’s pages, probably due recent modifications.

    Viewmycurrency discards everything that is between html tags to obtain just a text with the desired currency conversion

    New calculator pages have a lot of tags inside {} characters (css? I don’t know, I don’t program anything…)

    So we need to get rid of that content too

    So a hack to have correct values from google.com:

    find the viewmycurrecy.jar file

    It should be located at somewhere like C:\Documents and Settings\username\Application Data\Mozilla\Firefox\Profiles\eowtm08j.default\extensions\{b062dc7a-216b-431e-b48b-3e1c98afca53}\chrome

    – close firefox
    – rename viewmycurrency.jar to viewmycurrency.jar.zip
    – open viewmycurrency.jar.zip with winzip
    – view the WILL_WebServices.js file with a text editor
    – look for this line:

    stripped = content.replace(//g,”); // remove all HTML tags

    – under the line that you just found, add this line:

    stripped = stripped.replace(/{(.|\s)+?}/g,”); // remove all {} HTML tags

    – save the file
    – winzip will ask to update the modified file inside the zip, confirm with Yes
    – rename viewmycurrency.jar.zip to viewmycurrency.jar

    DISCLAIMER:
    – works for me (USD to BRL conversions, usually)
    – use at your own risk, I am not responsible if this cripples your computer or destroy the world or anything else
    – I am no programmer, I got this result readind the sources, trying to understand what was done

    AGAIN:
    – use at your own risk, I am not responsible if this cripples your computer or destroy the world or anything else

  • 27. jose orlando  |  Thursday, 19th June at 3:45 pm

    From what I could understand from the code, the wrong values come from Viewmycurrency not stripping correctly google calculator’s pages, probably due recent modifications.

    Viewmycurrency discards everything that is between html tags to obtain just a text with the desired currency conversion

    New calculator pages have a lot of tags inside {} characters (css? I don’t know, I don’t program anything…)

    So we need to get rid of that content too

    So a hack to have correct values from google.com:

    find the viewmycurrecy.jar file

    It should be located at somewhere like C:\Documents and Settings\username\Application Data\Mozilla\Firefox\Profiles\eowtm08j.default\extensions\{b062dc7a-216b-431e-b48b-3e1c98afca53}\chrome

    – close firefox
    – rename viewmycurrency.jar to viewmycurrency.jar.zip
    – open viewmycurrency.jar.zip with winzip
    – view the WILL_WebServices.js file with a text editor
    – look for this line:


    stripped = content.replace(//g,''); // remove all HTML tags

    - under the line that you just found, add this line:

    stripped = stripped.replace(/{(.|\s)+?}/g,''); // remove all {} HTML tags

    – save the file
    – winzip will ask to update the modified file inside the zip, confirm with Yes
    – rename viewmycurrency.jar.zip to viewmycurrency.jar

    DISCLAIMER:
    – works for me (USD to BRL conversions, usually)
    – use at your own risk, I am not responsible if this cripples your computer or destroy the world or anything else
    – I am no programmer, I got this result readind the sources, trying to understand what was done

    AGAIN:
    – use at your own risk, I am not responsible if this cripples your computer or destroy the world or anything else

  • 28. Kimme Utsi  |  Saturday, 21st June at 12:46 am

    I also miss this extension in FF3, so could this be updated so it will work in FF3? Many thanks in advance on my behalf.

    ps; on jose orlandos explanation on how to fix the xpi file by adding an zip ending I’m lost where he states that I only have to ‘delete the line the tag’??? Which line and which tag?

  • 29. John  |  Sunday, 22nd June at 12:25 am

    I think jose orlando is wrong, it does not work.

  • 30. Konkhra  |  Monday, 23rd June at 9:14 pm

    The Jose Orlando workaround works. Just delete the line “ http://hamstersoup.com/ViewMyCurrency/NoCache/update.rdf?ver=0.3897 ” from the “install.rdf” file, and save it. Then install the XPI file.

  • 31. jose orlando  |  Wednesday, 25th June at 2:04 pm

    the workaround works, but since I used html tags the text was garbled.

    the line that says

    “- delete the line the tag”

    must be read as

    – delete the line with a tag with the word ALPHA inside

  • 32. Marco  |  Monday, 30th June at 3:59 pm

    It is on me that EUR and USD are 1:1?

  • 33. Konkhra  |  Monday, 30th June at 11:36 pm

    This extension needs to be updated with new exchange rates servers.

  • 34. bzzlink  |  Thursday, 17th July at 9:53 am

    The code is public, you can find it on google code, please someone continue developing this!

  • 35. gon  |  Monday, 21st July at 7:55 am

    With Firefox 3.0.1 VMC stops working. To fix this, change the install.rdf so the line that reads (use jose orlando’s instructions, #25 )

    2.0.0.*

    with this

    3.*

    Save the file, update de XPI and install, all the problems should be gone.

  • 36. gon  |  Monday, 21st July at 7:58 am

    danm… this thing stripped out the XML tags.

    Look for the lines with this “maxVersion” tags. within targetApplication area.

  • 37. daK  |  Thursday, 24th July at 9:46 am

    Hi

    Great addon, too bad it has been forgotten by the author.

    I managed to make VMC work by deleting the tag alpha and changinf the maxversion.

    But I still can’t manage to change the currency servers.
    Does anyone have an ideia how to do it?

  • 38. Kristian  |  Saturday, 23rd August at 8:39 pm

    I would like to help you in any way possible, I have used the add-on every day .. but now with new firefox i cannot use it anymore.. thats too bad.

  • 39. g3ccPocs  |  Saturday, 1st November at 1:51 pm

    In any way possible? 🙂 Hmm…

  • 40. omg!  |  Saturday, 1st November at 2:05 pm

    Woo, this guy is willing to suck dick for update 😀
    uConsider!

  • 41. Kristian  |  Tuesday, 4th November at 7:03 pm

    How mature…. 🙂

  • 42. ups  |  Thursday, 13th November at 1:07 am

    Please update this to 3.0!

    Also, Maybe is simpler to use http://finance.google.com/finance/converter to get the values.

  • 43. Gismo  |  Friday, 5th December at 8:31 am

    It seems that WMC needs much more love that Will can provide to it 🙂
    I’ve been seeking thro moz stuff for alternatives but didn’t find one close enough to this.
    Any alternatives the respected community may have found?

  • 44. sjoerd  |  Monday, 29th December at 11:27 am

    I finally got VMC working properly again in FF 3. I followed the advice given in these comments, but found that was not enough. VMC seemed to work, but gave ludicrous conversion rates. After staring at it for a while and experimenting, I found that the page VMC used to find out conversion rates contained multiple matches, only one of which was the rate it needed, but it used some other rate on the same page.

    Here is what I did to get VMC working (this includes the advice given above). Note this is done on Linux. On Windows, the commands will be different.

    Download ViewMyCurrency_v0.3897.xpi and unpack:
    mv ViewMyCurrency_v0.3897.xpi ViewMyCurrency_v0.3897.zip
    unzip -d ViewMyCurrency_v0.3897 ViewMyCurrency_v0.3897.zip
    cd ViewMyCurrency_v0.3897

    Also unpack the .jar file:
    cd chrome
    mv viewmycurrency.jar viewmycurrency.zip
    unzip -d viewmycurrency viewmycurrency.zip
    cd ..

    Edit two files. The first is to get FF 3 to load VMC, the second is to fix the search for conversion rates:
    Edit install.rdf and remove the line that contains the word “ALPHA” (without the quotes, in all caps); and also change the line that contains maxVersion to say “3.*” instead of “3.0.0.*”.

    Also edit the file chrome/viewmycurrency/content/WILL_WebServices
    .js which was part of the .jar file and change the line that starts with “var matches=” to
    var matches=/<b>1 .+ = (\d*\s?\d+\.?\d*)/.exec(content);
    (I hope this comes through: in detail: add LESS-THAN b GREATER-THAN right before the 1, and change “stripped” into “content”.

    After making these edits, package things up again:
    cd chrome/viewmycurrency
    zip -r viewmycurrency.zip content locale skin
    cd ..
    mv viewmycurrency/viewmycurrency.zip viewmycurrency.jar
    rm viewmycurrency.zip
    rm -r viewmycurrency
    cd ..
    zip -r ViewMyCurrency.zip *
    cd ..
    mv ViewMyCurrency_v0.3897/ViewMyCurrency.zip ViewMyCurrency.xpi

    Then load the file ViewMyCurrency.xpi into FF.

  • 45. Johnson  |  Friday, 2nd January at 6:45 pm

    This mod still gives me bogus rates. See image: http://img254.imageshack.us/img254/4200/zwischenablagebildvz5.png

    Any ideas how to fix?

  • 46. Mike  |  Monday, 19th January at 11:28 am

    Could someone who has successfully modified this to run with FF3 please post it somewhere the rest of us could download from? Thanks!

  • 47. Chris  |  Monday, 19th January at 11:44 am

    Changes I made in version 0.3895 (yeah it’s older, but it works)

    Set the version to 0.3895001.
    This release is not by the original author!
    1) Changed version numbers from 0.3895 to 0.3895001

    2) Modified Google calculator regular expression
    File WILL_Webservices.js replaced line #152.
    OLD #152:
    var matches=/1 .+ = (\d*\s?\d+\.?\d*)/.exec(stripped); //WILL: This doesn’t enforce thousands grouping. TODO: consider using Number parsing function?
    NEW #152:
    var matches=/>1[^=1]+= ?((\d)+\.(\d)+)/.exec(content);

    3) Firefox 3 installation (thanks to sjoerd)
    File install.rdf line #29
    OLD #29: 2.0.0.*
    NEW #29: 3.*
    Delete line #14, i.e. the line starting with

    4) Commented out lines #639 & #640 of WILL_OptionsDialogManager.js.
    // (causes exception, no idea why) treebox.invalidateCell(this.lastRowNum,this.lastColObj); //undraw the old
    // (causes exception, no idea why) treebox.invalidateCell(rowNum,colObj); //draw the new selection

    Here is the download:
    http://www.filedropper.com/viewmycurrency3895001
    MD5: 12607e63915ba43d04f91669efdb5a1e

  • 48. Cirus  |  Tuesday, 27th January at 10:34 pm

    Thanks a lot!!! Version 0.3895001 works great with FF3. 🙂

  • 49. Bogdan Stancescu  |  Tuesday, 27th January at 11:56 pm

    I have been advertising VMC for a while now on my generic Converter extension, noting “The Converter will never perform currency conversions as long as ViewMyCurrency or another dedicated extension is available, and working, and under active development.“. Since VMC doesn’t seem to be under active development I could include its functionality, so I’m asking the VMC users to take a minute and provide some feedback on this idea, either here or there.

  • 50. rugged man  |  Thursday, 19th March at 11:02 am

    Great stuff Chris! Works fine!

  • 51. Chris  |  Thursday, 19th March at 11:43 am

    Test

  • 52. JimJim  |  Saturday, 21st March at 8:33 pm

    Could someone upload the version for FF3 again.

    tack

  • 53. Chris  |  Monday, 23rd March at 9:48 am

    I’ve put links in, but it is awaiting moderation since the 19th March. Looks like urls are being blocked.

    So if someone knows how to workaround that or if I can post them somewhere else, I’ll do that.

    Chris

  • 54. jimmim  |  Monday, 23rd March at 11:09 am

    perhaps something like this:

    filedropper****com/viewmycurrency

    thanks

  • 55. Chris  |  Monday, 23rd March at 11:12 am

    Reposting multiple download links (filedropper file is no longer there).
    See post 47 for more information & the MD5.
    Replace **** with a .

    fileqube****com/file/aWrIniO181746
    filefactory****com/file/af6gbfb/n/ViewMyCurrency_3895001_xpi
    nakido****com/2AC9A529DBD03FBA33ED91EAFA120EF81473197C
    filesavr****com/download.php?id=viewmycurrency3895001
    mediafire****com/?sharekey=19be85705b40b3645bf1f12f1ff3f30acefddaefa6b00717ce018c8114394287

  • 56. Bogdan Stăncescu  |  Thursday, 26th March at 1:42 am

    Ok, I grabbed the bull by the horns and released a re-branded version of Chris’s adaptation of Will’s last known ViewMyCurrency (click on my name just above to download). Incidentally, I have made an exhaustive review of Chris’s modifications, and he was 100% true to his word — his report in comment #47 above is totally accurate (which is basically what I’m releasing, plus a few warnings and explanations).

    I took this step after asking my own extension’s users to participate in a poll where they overwhelmingly voted for currency conversion support — so this is basically the first step towards unifying my generic Converter with Will’s VMC.

    I’m sorry I had to rename ViewMyCurrency, but I really had to in order to create a completely new entry for AMO (addons.mozilla.org), since I couldn’t reuse Will’s entry. At least this way I can provide a safe haven for VMC to live on — I will gladly review and publish any updates, so by all means, do keep in touch.

    Cheers,
    Bogdan

  • 57. Fred  |  Thursday, 4th June at 10:09 pm

    ConvertMyCurrency works great.
    Minor bug:
    When converting to kr (NOK, DKK, SEK) – it should say:
    193kr (£18.95) as opposed to kr193 (£18.95) as it says now…

  • 58. David  |  Tuesday, 7th July at 5:10 am

    ConvertMyCurrency is working perfectly. Thank you very much, I loved this addons with previous FF and I was missing it.

  • 59. jose orlando  |  Sunday, 23rd August at 1:42 am

    to Chris:

    I downloaded your modification, it works fine now, I can select currencies, change the target converion, etc. Thanks!

    to Bogdan:

    I tried ConvertMyCurrency, but it results in error. I can’t pass the setup part, since doesn’t show any currency to select, it appears a small “ERROR” string in red. I didn’t had time to open the jar to look where it happens. I tried in different machines, using the W3 skin and the default skin. Same error.



%d bloggers like this: