busylog
minimal example for full screen browser with droidscript
Droidscript site: https://droidscript.org/
Google Play: https://play.google.com/store/apps/details?id=com.smartphoneremote.androidscriptfree
Docs: https://droidscript.github.io/Docs/docs/latest/Docs.htm
function OnStart()
{
app.SetScreenMode("Game");
lay = app.CreateLayout("linear", "FillXY");
web = app.CreateWebView(
1, 1,
"Wide,NoActionBar,NoScrollBars,NoLongTouch,NoLocate"
);
lay.AddChild(web);
app.AddLayout(lay);
app.ChooseFile(
"Open HTML",
"text/html",
function(url)
{
web.LoadUrl(url);
}
);
}
busylog
devtools script to extract apple music playlist
it is also a nice example to expand/edit to suit other uses. disclaimer: ai generated code
copy(JSON.stringify(
[...document.querySelectorAll('div.songs-list-row')].map((row, i) => {
const links = [...row.querySelectorAll('a.click-action[href]')];
return {
rank: i + 1,
links: links.map(a => ({
text: a.innerText.trim(),
url: a.href
}))
};
}),
null,
2
));