Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Chrome_GetTabList() {
whr := ComObjCreate("WinHttp.WinHttpRequest.5.1")
whr.Open("GET", "http://localhost:9222/json")
whr.Send()
out := []
for i, tab in Jxon_Load(whr.ResponseText)
{
if (tab.type = "page")
out.push( {url: tab.url, title: tab.title} )
}
return out
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.