【发布时间】:2017-04-29 23:19:17
【问题描述】:
假设我的扩展使用How can I get the current tab URL for chrome extension?中建议的方法获得了当前活动标签的URL,例如
chrome.tabs.query({
active: true,
lastFocusedWindow: true
}, function (tabs) {
// use first tab to obtain url
var tab = tabs[0];
var url = tab.url
});
如何确定网址是否引用了我拥有编辑权限的 Google 文档?所有权和受邀合作者之间的区别对于此应用程序并不重要。我只对文档感兴趣,而不是电子表格或表单。
有关我正在尝试开发的内容的上下文,请参阅:How to manually generate notifications to a Google Doc collaborator?
【问题讨论】:
标签: javascript google-chrome-extension google-drive-api google-docs-api