XPath, if there's decent markup around it. If that text is in a <p> by
itself, you could use //p[contains(.,'earthworms')]/strong and then
Number() the result.

On Thu, Oct 22, 2009 at 5:13 PM, Stuer Michael <[email protected]> wrote:
>
> i'm currently trying to make a script in the setting of a fishing
> game. but i only want the script to fish when i have earthworms.
> (kinda makes sense doesn't it :p)
>
> but i dont know how i can script this...
>
> in the source page of the web page i found this:
>
> You currently have <strong>95</strong> earthworms.
>
> is there any way to make my script read this in and remember this as a
> variable?
>
> friendly greets
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/greasemonkey-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to