It's possible to open a page and remove some html tags/elements manually from the inspect element. I am looking for a way to do it automatically in DOM (Something like what AdBlock extension is doing). How to remove ads which has class name tags?
I don't wan't to retrieve the html content and display it's modified version on GUI because the user might click on links and surf the website.
Get help with using AutoHotkey and its commands and hotkeys
2 posts • Page 1 of 1
I did it by simply manipulating the DOM document.getElementsByClassName("smaller").innerHTML="". I don't know why such a simple solution didn't come to mind before. Now I have another question: is there a way to display specific classes only? This way I don't have to find undesirable classes and remove them instead I will only display my desired class.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot], RubbeH and 44 guests