Blog settings automatically block advertising scripts; One line of code makes blog Garden advertisement disappear;

Time:2021-6-11

Previously used cases:https://www.cnblogs.com/xuyaowen/p/nav_bar_none.html 

Inspired by the case, it is also convenient to block advertisements in the park; But stillBlocking advertising is not recommendedI feel that the blog Garden is OK, and the advertisement does not affect the reading;

Console.log ("advertising blocking starts;");
document.all.ad_t2.style.display='none';
document.all.under_post_kb.style.display='none';
document.all.cnblogs_c1.style.display='none';
document.all.cnblogs_c2.style.display='none';
document.all.under_post_news.style.display='none';
Console.log ("top title bar screening completed;")< br>

Keep up to date; For more information, please visit cnblogs.com/xuyaowen;