I would like to select an element using javascript / jquery in Tampermonkey.
The class name and element tag change each time the page loads. So I have to use some form of regular expressions, but I can’t figure out how to do this.
Here's what the HTML looks like:
<ivodo class="ivodo" ... </ivodo>
<ivodo class="ivodo" ... </ivodo>
<ivodo class="ivodo" ... </ivodo>
- The tag always matches the class name.
- This is always a 4 letter random "code"
I assume it will be something like this: $ ('[/ ^ [AZ] {4,5} /}')
Can someone help me get the correct regular expression?
source
share