Hi, I’m new to Scriptable and to JS in general. I’m trying to call a url and remove specific div-elements by id or class name.
Suppose I want to remove the logo (class=“logo”) from https://scriptable.app. What I have so far is the following:
url = "https://scriptable.app"
let req = new Request(url)
let html = await req.loadString()
WebView.loadHTML(html)
I have currently two questions:
- How can I use a method like getElementById() on my html (to then remove it)?
- When (web)viewing the html in the end, all the links are not active anymore. Is there a better way to do it?