Let's say I have a webpage open on my browser with source code like so:
<html>
<body>
<p>aaa</p>
<h1>yyy</h1>
<b>ccc</b>
</body>
</html>
And I had a Greasemonkey script that had a Javascript array defined like so:
var array = ['aaa', 'bbb', 'ccc', 'asds'];
Using JavaScript or JQuery, how do I search the entire text of a webpage to check if any text on the page matches any text in the array without knowing which element or class the text may reside?