网站里找到的都是获取当前窗口所有的标签ID,网址这些
多个浏览器窗口,如何获取所有标签ID网址
//.js chrome.windows.getLastFocused({populate:true}, function(win){ var urlList = win.tabs.map(x=>x.url); sendReplyToQuicker(true, "ok", urlList, qk_msg_serial) });
谢谢
https://developer.chrome.com/docs/extensions/reference/tabs/#method-query 官方文档。你可以试试修改一下获取当前窗口的,去掉里面的窗口条件。
网址打不开,😂😂
//.js chrome.tabs.query({}, function(tabs){ sendReplyToQuicker(true, "ok", tabs, qk_msg_serial) });
示例动作:
https://getquicker.net/Sharedaction?code=f5d04f2b-ff8e-4914-b29e-08db37e89b06
//.js
chrome.windows.getLastFocused({populate:true}, function(win){
var urlList = win.tabs.map(x=>x.url);
sendReplyToQuicker(true, "ok", urlList, qk_msg_serial)
});
谢谢