首页 > 解决方案 > 如何从谷歌表中检索数据到 manifest.json

问题描述

如何将谷歌表中的列数据(在提交谷歌表单后更新)检索到我的 manifest.json 文件。

基本上,我正在创建一个阻止某些特定链接的 chrome 扩展,这些链接是谷歌工作表上列中的数据。

标签: jsongoogle-chrome-extensionpluginsbrowser-extensionmanifest.json

解决方案


The way I would approach this problem is using Google Apps Script to create a REST API. This would allow the chrome extension to query an endpoint and receive data from the Google Sheet.

Here is a tutorial for how to create the API: https://trevorfox.com/2015/03/rest-api-with-google-apps-script/

You could then make a fetch request from the extension's background script and chrome storage to store the blacklisted links.


推荐阅读