//code hereI went to the "...">

Remove some <div> when loading a webpage

Most display ads. They are usually placed in

<div class="googlead">//code here</div> 

I went to the "Inspect Element" in chrome and removed the div, and the web page looked beautiful.

So is there a script there where

 // PESUDOCODE IF website url contains stackoverflow keyword THEN delete this <div> having this class="googlead" ENDIF 
+4
source share
1 answer

Yes, these scripts are already written for you in the form of browser plug-ins, such as Adblock Plus. http://adblockplus.org/

If you're interested, you can see the source code for your various plugins here: https://github.com/adblockplus

+2
source

Source: https://habr.com/ru/post/1486552/


All Articles