Create a new bookmark and paste the following code into the location field:
javascript:%20(function()%20alert(s);}});})();
Save it under a name like "Show dollar values". This is a bookmarklet. Click it on a webpage and it will pop up an alert with a list of all dollar values that occur on the page.
The code above relies on JQuery, so if the web page you're using it on doesn't already load JQuery, you'll need to use this Append JQuery bookmarklet first.
customizing the match.
It's fairly easy to modify the values the bookmarklet displays. For instance, the code below is modified to only display 9-figure or higher amounts:
javascript:%20(function()(\d[,]?)+/g%20;%20while%20(m=d.exec(result))%20%20alert(s);}});})();
If you find the in that code and replace it by another number, say N, you'll change the cut-off number of digits N+1.
If you wanted to customize this bookmarklet for more general use, you'll need to look up "Javascript regular expressions" to learn the syntax you'll need. This part (/[$](\d[,]?)+/g
) of the code is what controls the matching. If you change the part between /
and /g
, you'll change what the bookmarklet matches.