Jump to content

Greasemonkey script.


freddyw

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

  Quote

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.