I am trying to Gather Data from this Webpage :
https://www.biharjobportal.com/bihar-police-constable-bharti/
I managed to Remove all GoogleAds from the Website using this Code Since it has a Class name, so its easy:
var theaders = document.getElementsByClassName('adsbygoogle');
for (var i=theaders.length-1; i >=0; i--)
{
theaders[i].parentElement.removeChild(theaders[i]);
}
But the webpage has this Element with No IDS, class name etc.. (see screenshot pls):
I only know that the Element to Remove is between these Comments:
<!-- WP QUADS Content Ad Plugin v. 2.0.17 -->
**codes to remove (as in the picture)**
<!-- WP QUADS Content Ad Plugin v. 2.0.17 -->
I tried to remove all such items using XPATH, but nothing happened, this is the code i Wrote :
var badTableEval = document.evaluate (
"/html/body/div[1]/div/div[1]/main/article/div/div/ul[3]",
document.documentElement,
null,
XPathResult.FIRST_ORDERED_NODE_TYPE,
null
);
if (badTableEval && badTableEval.singleNodeValue) {
var badTable = badTableEval.singleNodeValue;
badTable.parentNode.removeChild (badTable);
}
How to remove all this element from the webpage ? https://www.biharjobportal.com/bihar-police-constable-bharti/
