How to remove this element? contains() not working
Lets start with a sample page:
As you can see pretty much at the end there is a line starting "Now you" in bold face.
I want to remove the wrapping <p> element (on this and all similar ghacks webpages) after loading of webpage.
I tried so far:
$("strong:contains('Now Vou')").parent().remove();
$("p:contains('Now Vou')").remove();
$("strong:contains('Now Vou')").parent().css("display", "none");
$("p:contains('Now Vou')").css("display", "none");
None of these are working. "Now you" remains visible.
How else can I achieve this?
Peter