I am writing a custom script for a forum that I frequent. It is designed to remove signatures from the board when viewing, because they are distracting and annoying, and they have no way to disable them in the settings.
In any case, I can run my own scripts using the useful Chrome extension. I can modify any parts of the page where the HTML nodes have classes, identifiers, or even attributes with slightly unique information, but I cannot figure out how to select and remove the following HTML using jQuery.
<tr> <td colspan="2"> <div class="resultText"> <div>Signature text</div> </div> </td> </tr>
If there was a way, I could capture the parent <!--Signature--> , which would be perfect, but I'm not sure if this is possible.
Here is a screenshot of a larger HTML tree for the entire forum post:
http://www.codetunnel.com/content/images/htmltree.jpg
There is one resultText class, but this class is used wherever there is text entered by the user, and not just the signature. Therefore, I cannot understand this. Any help is appreciated :)
source share