Jump to content

Recommended Posts

Hey people.

 

Here's something I'm trying to do and really cant figure out how to go about it.

 

So I have a webpage and inside the webpage this piece of code appears several times

 

<span class="icon private"></span> 
                        <div class="meta"><span>190 Images</span></div>

 

The amount of times that piece of code appears is never certain. Nor is the number (or integer if we must) that is inside it.

 

What I'm trying to create is a Greasemonkey script that will take the number from inside that snippet of code each time it appears and add them up and produce a total.

 

Any thoughts are greatly appreciated.

Link to comment
https://forums.phpfreaks.com/topic/203029-greasemonkey-script/
Share on other sites

What I'm trying to create is a Greasemonkey script that will take the number from inside that snippet of code each time it appears and add them up and produce a total.

 

Here is a thought try a combination of grease monkey + jquery (or another framework) http://www.google.com/#q=jquery+greasemonkey That what it will be easy to search for that code sniplet and filter out the number.

Link to comment
https://forums.phpfreaks.com/topic/203029-greasemonkey-script/#findComment-1063971
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.