The original page, a lot of ads
Processed after the page, no ads, a lot of good mood
Press F12 to paste the following code at the cursor:
Alert (document.getElementsByTagName ("iframe"). length);//Total number of IFRAME for
(var i=20;i>=0;i--) {// You can also use the total number of IFrame obtained above
var do1=document.getelementsbytagname ("iframe") [i];
if (Do1 = = null) {
}else{
do1.parentNode.removeChild (do1);
/* document.getElementsByTagName ("iframe") [i].src= ';
document.getElementsByTagName ("iframe") [i].style.height= "1px";
document.getElementsByTagName ("iframe") [i].height= "1px";
*/
}
}
Press ENTER to see the page, the ad is not
Update code:
Delete iframe ad content
var iframecount=document.getelementsbytagname ("iframe"). Length;
for (Var i=iframecount;i>=0;i--) {
var do1=document.getelementsbytagname ("iframe") [i];
if (Do1 = = null) {
}else{
//do1.style.display= "None";
Do1.parentNode.removeChild (DO1);
}
}
Remove the embedded ad placeholder, and some use the above to remove the IFRAME and occupy a bit, you need to execute the next
var inscount=document.getelementsbytagname ("ins"). Length;
for (Var i=inscount;i>=0;i--) {
var do1=document.getelementsbytagname ("ins") [i];
if (Do1 = = null) {
}else{
//do1.style.display= "None";
Do1.parentNode.removeChild (DO1);
}
}