我想写一个 Chrome 插件,目的是圈选页面上文本内容后,可以弹出一个按钮,点击按钮后,将文本内容发送到 flomo。下面是一些要求: ——…
Private research annotation
Sign in to add a private research label or note.
Jump to turn (26)
- 1我想写一个 Chrome 插件,目的是圈选页面上文本内容后,可以弹出一个按钮,点击按钮后,将文本内容发送到 flomo。下面是一些要求: —— "manifes
- 2确认,请继续
- 3确认,请继续
- 4确认,请继续
- 5确认,请继续
- 6按钮出来了,在右上角,但是无法点击
- 7文件 ~/桌面/Chat2flomo 错误 Invalid value for 'content\security\policy'. 无法加载清单。
- 8还是这个提示:nvalid value for 'content\security\policy'. 无法加载清单。
- 9确认我写的对么 { "manifest\version": 3, "name": "Flomo Text Sender", "version": "1.0",
- 10这样对么? { "manifest\version": 3, "name": "Flomo Text Sender", "version": "1.0", "d
- 11还是提示: Invalid value for 'content\security\policy'. 无法加载清单。
- 12Manifest is not valid JSON. Line: 12, column: 19, Unexpected token. 1 2 3 4 5 6
- 13点击插件按钮,显示:鍙戦€佸埌Flomo ,这是啥?乱码了?
- 14选中文本后,按钮出来了,但是点击无效
- 15给我个完整的popup.js代码
- 16控制台返回:Uncaught (in promise) TypeError: Cannot read properties of undefined (read
- 17这样写对么? { "manifest\version": 3, "name": "Flomo Text Sender", "version": "1.0", "
- 18堆叠追踪 content.js:37 (匿名函数)
- 19const style = document.createElement('style'); style.textContent = .flomo-extens
- 20帮我重写个 content.js 吧。下面是现在的情况 const style = document.createElement('style'); style
- 21堆叠追踪 content.js:37 (匿名函数) ———— 第 37 行是: const [tab] = await chrome.tabs.query({
- 22控制台报错:ncaught (in promise) TypeError: Cannot read properties of undefined (readi
- 23你给我的 manifest.json 中没有content\scripts 的 run\at 属性
- 24Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'q
- 25Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'q
- 26还是Uncaught (in promise) TypeError: Cannot read properties of undefined (reading
- User
我想写一个 Chrome 插件,目的是圈选页面上文本内容后,可以弹出一个按钮,点击按钮后,将文本内容发送到 flomo。下面是一些要求:
—— "manifest_version": 3 —— flomo的 api 示例为:POST https://flomoapp.com/iwh/Mg/556f8fa437b1258e593edc1dbfe80727/ Content-type: application/json { "content": "Hello, #flomo https://flomoapp.com" }
每一段涉及到代码的内容,都让我确认后继续。
- Assistant
首先,让我们创建一个Chrome插件的基本结构。以下是
manifest.json文件的内容:json