Javascript delete div class

how to delete div class with javascript

blue dot in the picture
Does anyone have sample code or block code?

document.getElementsByClassName(‘content’)[0].style.display =‘none’;

content = d-flex-ch j-center ?

1 Like

document.getElementsByClassName(‘d-flex-ch j-center’)[0].style.display =‘none’;

I am trying

It didn’t happen

give me a link to the site. I will delete. you’re probably doing it wrong. this code removes any div

i used it like this

Access denied Error code 1020

You do not have access to

The site owner may have set restrictions that prevent you from accessing the site. Contact the site owner for access or try loading the page again.

no man site online vpn Could be caused by different connection.

document.getElementsByClassName(‘d-flex-ch j-center’)[1].style.display =‘none’;

change the number 0 to 1 if nothing changes then to 2, etc.

I am trying

what do you want to delete? The screenshot shows a div that removes all marked content. try different subdivs

you can also try it on this site :slight_smile:

the advertising part

here is the blue part

As you can see everything is very easy. you can delete anything. I removed the upper part of the forus, and your screenshot

can you share the block code

i want to know how you did it