Created
October 31, 2018 06:24
-
-
Save tmplinshi/be40821c348195342f40874597cfccae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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