json - 如何从谷歌表中检索数据到 manifest.json
问题描述
如何将谷歌表中的列数据(在提交谷歌表单后更新)检索到我的 manifest.json 文件。
基本上,我正在创建一个阻止某些特定链接的 chrome 扩展,这些链接是谷歌工作表上列中的数据。
解决方案
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.
推荐阅读
- ios - 我应该如何编码导致相同 segue 模板的多个集合?
- python-3.x - 如何修复“ValueError: Expected input batch_size (1) to match target batch_size (4).”?
- angular - NGRX - 使用 jasmine-marbles 将 Promise 转换为 observables 的测试效果问题
- javascript - 我无法在对象构造函数中创建事件监听器来监听
- python - 如何在 groupby 之后使用单个列的唯一值计数来应用某些条件?
- android - How can I use Repository
- excel - 在 Excel 中使用组中的排名函数进行排序
- swift - 如何修复:按名称调用节点(由 func 生成)不起作用
- java - 网格窗格上的 JavaFX 交换按钮
- c++ - Trying to understand merge sort program