FarmVille Remaining Time

By Tommey Last update Oct 11, 2009 — Installed 3,605 times.

Modifications

in
Subscribe to Modifications 2 posts, 2 voices



JoeSimmons Scriptwright
FirefoxWindows
I added some modifications, upgrades if you will.
  • Fixed a little bug in your _2z... should be n<=9 not n<9 or it wont turn 2:9 into 2:09.
  • Added am/pm.
  • Replaced 12/10 date with real days like (mon).
  • Put the code in a div element first and appended it to the 'content' instead of ruining potential listeners and whatnot.
Changing the innerhtml isn't good because it kills the listeners. Also, it's a slow method treating the DOM like a pile of text and it's not that (you're making the browser re-parse the whole innerhtml into a dom again).

Here's the code: http://pastebin.com/f2fb7fcbb
And here's what it looks like:



Love the script, though. I have one just like it but it's an offline html page that I open up, not for GM. You select the percent, the crop name and it tells you in minutes (and hours if minutes is >60) when it's done. It looks like this:

It's made for FarmTown but I'm modifying it for FarmVille too. I'll post if I have any more upgrades.
 
krisandwill User
FirefoxWindows

Harvest Calc. 2.25 stopped working today so I stopped by here, Didn't know this was available. Nice script, seems to work ok. Thanx Joe for the rest.

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