Large

Farmville Harvest Calculator

By Alan Claughan Last update Aug 26, 2010 — Installed 22,514 times.

no display

in
Subscribe to no display 23 posts, 3 voices



bstraatman User
FirefoxWindows

I instaled it but it doesn't display, how can i fix it

 
Alan Claughan Script's Author
FirefoxMacintosh

Check that the URL of the farmville page matches the included page in grease monkey. It should be http://apps.facebook.com/onthefarm/index*. If you have a different URL, than modify the included page in Grease Monkey.

 
bstraatman User
FirefoxWindows

it stil doesn't work I don't know what it is

 
Alan Claughan Script's Author
FirefoxMacintosh

I just loaded it up on a windows 7 machine and it didnt pop up. But I see the farmville URL had changed to http://apps.facebook.com/onthefarm.

I just changed the include page in the script, so just try reinstalling it.

 
bstraatman User
FirefoxWindows

it doesn't work yet, and i've downloaded the latest version and changed the URL in http://apps.facebook.com/onthefarm.

 
Alan Claughan Script's Author
FirefoxMacintosh

Are you by any chance running the farmville view simplifier script?

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

Apparently this breaks the Harvest Calculator.

Try turning off all other scripts.

Also remover the m and add a asterix to the end of your include URL.

So it will be

http://apps.facebook.com/onthefar*

 
Raptre Scriptwright
FirefoxWindows

I like this script very much, but since I updated to Firefox 3.5.5 it stopped working. I had it previously working and with the View Simplifier just fine. I'm using the latest version of the script and greasemonkey as well. Any ideas?

 
Alan Claughan Script's Author
SafariMacintosh

Unfortunately the view simplifier removes the frame to the right of the game, which is where I insert the calculator. I did try to recover the frame, but it would seem its not that easy. Once Joe has finished with all the updates on his View Simplifier, I will give it another try. Have you tried loading the calculator after the View Simplifier. It defiantly will not work if loaded before the view simplifier.

 
Raptre Scriptwright
FirefoxWindows

No, it just doesn't work at all with this version of firefox. I had another computer with just Firefox 3.0 on it and it worked fine. I updated firefox to 3.5.5 and it stopped working.

I also want to mention one computer uses XP and the other Vista and they have the same issue.

 
Alan Claughan Script's Author
FirefoxMacintosh

I'm not sure its Firefox. Just loaded 3.5.5 on a Windows 7 machine and it works great. I think we need to look elsewhere. Are both scripts configured to include identical URL's? Do you have the same scripts running on both machines. What about the grease monkey versions, are they identical?

 
Alan Claughan Script's Author
FirefoxWindows

Something to be aware of, the View Simplifier scripts depends on another script :

Advanced Element Grabber (http://userscripts.org/scripts/show/51532)

Make sure this is loaded first, then the view simplifier, then the Harvest Calculator.

I have now successfully got this to work on Firefox 3.5.5 using XP, Windows 7 and Snow Leopard.

 
bstraatman User
FirefoxWindows

you say you used xp but I have vista and it still doesn't work

 
Raptre Scriptwright
FirefoxWindows

The "Advanced Element Grabber" script is installed and automatically loaded with the "View Simplifier" script. Here is what I have done...

I originally had this script installed on an XP Home machine and a Vista Home Premium machine, both working well even with the "View Simplifier" script. I was prompted to do a update to Firefox 3.5.5 on my XP Home machine. After the upgrade was complete, the script no longer worked. I thought perhaps I need to do some other updating, so I made sure my GreaseMonkey plugin was the latest version, but that made no difference. I tried rearranging the ordering of my scripts, but that didn't work either. Lastly, I tried uninstalling all my scripts and only loading the latest version of this script, but still no joy.

As of today I have purchased and installed a retail copy of Windows 7 Professional and it still doesn't work.

 
Alan Claughan Script's Author
FirefoxMacintosh

So I do have a Windows 7 machine to run this on. Here are the various software versions.

1. GreaseMonkey 0.8.20090920.2
2. Firefox 3.5.5

GreaseMonkey Scripts in load order.

// @name Advanced Element Grabber ($g)
// @include http://*.google.com/*
// @version 1.0.6

// @name FarmVille View Simplifier
// @include http://apps.facebook.com/onthefarm/*
// @version 1.0.5
// @require http://userscripts.org/scripts/source/51532.use...

// @name Farmville Harvest Calculator
// @include http://*.facebook.com/*
// @version 1.34.2

This config runs like a charm. I have both the View Simplifier and the Harvest Calc running. When the View Simplifier runs, it moves the calculator to the very right of the frame. Otherwise they both run well together now. Just not on your machine :-/

 
Raptre Scriptwright
FirefoxWindows

That is very strange... However, I know absolutely nothing about but I managed to tweak the code to make it work. I moved the calc to the left side of the screen.

Added Code:
var oldHTML = document.getElementById('dropmenu_container').innerHTML;
var newHTML = oldHTML + out_frame;

Changed Code:
FROM: document.getElementById('sidebar_ads').innerHTML = out_frame;
TO: document.getElementById('dropmenu_container').innerHTML = newHTML;

FROM: GM_addStyle("*[id*=\"content\"], .UIStandardFrame_SidebarAds {display: block !important;}");
TO: GM_addStyle("*[id*=\"content\"], #dropmenu_container {display: block !important;}");

I also tweaked the out_frame a little to have the box fit nicely.

I'll just have to add any updated code manually, LOL!

Screenshot (I also use a personally altered script of simplifier to center the app better):
http://img.photobucket.com/albums/v122/Raptre/F...

 
Alan Claughan Script's Author
FirefoxMacintosh

Wow, you really went to a lot of trouble to get this going. Not sure what difference moving it to the left makes, but hey if it works, then so be it :-) I will add this as an option going forward, as you will miss out on any of the updates and I have quite a few planned :-)

 
bstraatman User
FirefoxWindows

it still doesn't work.
I have change the code like raptre but it still don't work

 
Raptre Scriptwright
FirefoxWindows

A couple of days after doing my quick fix something got changed and made things strange. I have an idea for this, but I'm going to see if it works before saying more.

 
Raptre Scriptwright
FirefoxWindows

I believe one reason some users have difficulty getting this to load with this latest version is that you have the included page listed as ''http://apps.facebook.com/onthefarm/index*''. With that as the included page if someones browser goes to ''http://apps.facebook.com/onthefarm/'' without the index in the URL the script won't load. I think you should change the included URL to ''http://apps.facebook.com/onthefarm/*'' but also add some excluded pages, for example ''http://apps.facebook.com/onthefarm/giftaccept*'' or ''http://apps.facebook.com/onthefarm/help*''. That way the script will only load on the game page and not when people accept gifts or go to the neighbors tab and so on.

Also is it possible to have this replace that strange news bar at the bottom of the screen? I'm not saying do it, but I personally would like to put the script in the place of that news thing and just change the tables design to make it wide instead of tall. I can't figure out if it is possible. I suck at java(script) I'm only good at HTML/CSS.

 
Alan Claughan Script's Author
FirefoxMacintosh

Done. Lets see if that helps. Any feedback on the 'new' position Raptre. Does that work without your mods :-)

 
Raptre Scriptwright
FirefoxWindows

Sorry for the delayed response... It seems to be working great now. I still think I'm going make some minor visual changes to it though. Once I'm done I'll post up a screenie and maybe if you like it you might implement it :)

 
Raptre Scriptwright
FirefoxWindows

Here is a screen capture of the "skinning" I performed :p
If you are interested in using this in the official script let me know.. I wrote everything down in a sort of change log.

http://img.photobucket.com/albums/v122/Raptre/F...

 
Raptre Scriptwright
FirefoxWindows

I should add, this "skinning" will overlap the game if used with the view simplifier. Of course so will the official version :p

Shameless Plug:
I just finished making a style for stylish that looks great with this script.
http://userstyles.org/styles/23057

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