Comments (5)
You are actually not requesting any additional permissions by using host_permissions, since you already requested "Access your data for all websites" with context_scripts.
Anyway, this is very weird since we are using the same browser versions, the only difference seems to be Mac vs Linux. Maybe we close this issue for now (until someone else encounters the same problem)? I can do with using the right-click menu (it works) instead of the floating button to capture.
from logseq-copilot.
This is interesting, I never thought that Behaver will have differences between Chrome and Firefox.
And, Thanks for sharing this.
Setting this as top priority, will fix it soon.
from logseq-copilot.
This is interesting, I never thought that Behaver will have differences between Chrome and Firefox.
Perhaps not Chrome vs. Firefox, since Vivaldi is using Chrome extension store, and also has the problem.
And I tried a fresh install of Chrome (v112.0.5615.121), has the same problem.
Both can be fixed by adding the "tabs" permission, or even better, by explicitly requesting <all_urls> host permission:
Chrome:
"host_permissions": [ "<all_urls>" ],
Firefox:
"permissions": [
"<all_urls>",
"storage",
"activeTab",
"contextMenus"
],
Since we already requested content_scripts on <all_urls>, this way we requests one less permission from user.
This is a bit weird, since I thought content_scripts implies host_permission, but seems not in my PC.
BTW, the Chrome manifest file seems to have some rendering bug in <all_urls>:
"content_scripts": [ {
"css": [ "content-script.css" ],
"js": [ "content-script.js" ],
"matches": [ "http://*/*", "https://*/*", "\u003Call_urls>" ]
} ],
from logseq-copilot.
Interesting, I was try chrome and Firefox on my machine, both working fine.
I don't want to bring unnecessary permission to users, but content_scripts
is same as host_permissions
when doing the store review.
My OS is macOS 13.2.1(22D68)
Below is the manifest I am using on Firefox Version 112.0.5615.121 (Official Build) (arm64).
{
"version": "1.10.11",
"author": "[email protected]",
"name": "Logseq Copilot",
"description": "Logseq Copilot, Connect with you logseq API server, bring your information when you browsing.",
"chrome_url_overrides": {},
"icons": {
"192": "assets/img/logo-192.png"
},
"content_scripts": [
{
"matches": [
"http://*/*",
"https://*/*",
"<all_urls>"
],
"js": [
"content-script.js"
],
"css": [
"content-script.css"
]
}
],
"permissions": [
"storage",
"activeTab",
"contextMenus"
],
"options_ui": {
"page": "options.html",
"browser_style": false,
"open_in_tab": true
},
"manifest_version": 2,
"background": {
"scripts": [
"background.js"
]
},
"web_accessible_resources": [
"content-script.css",
"assets/img/logo.png"
],
"browser_action": {
"default_popup": "popup.html",
"default_title": "Logseq Copilot"
},
"browser_specific_settings": {
"gecko": {
"id": "{dbe73d0a-f6b8-474a-ad39-0d46a07e4525}"
}
}
}
And this for Chrome Version 112.0.5615.121 (Official Build) (arm64):
{"version":"1.10.16","author":"[email protected]","name":"Logseq Copilot","description":"Logseq Copilot, Connect with you logseq API server, bring your information when you browsing.","chrome_url_overrides":{},"icons":{"192":"assets/img/logo-192.png"},
"content_scripts":[{"matches":["http://*/*","https://*/*","<all_urls>"],
"js":["content-script.js"],
"css":["content-script.css"]}],
"permissions":["storage","activeTab","contextMenus"],
"options_ui":{"page":"options.html","browser_style":false,"open_in_tab":true},"manifest_version":3,"key":"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnkAYeXnTWrNIu2h8D4xi9NHWLe0eTR3CX8DDw1c0qyCucaCKxkk/+gZcl89Ifyq5joXc/CeQrM3QVjrL1RAXrKZVqTNvBCUh1H1oJJ47nqkKKI6bNZVT8utjFTjDD1ZYXPYzQhsGuP/cY1wIrlhhIuawFW1h+UUwYlYQtS5FcjJ/RPrao+8KwJaS9p3Cei9rWXhE/PV19ZVOqOUx9ZSzj5/OYCB1u1VWFD5BlUbTXSbzyM/VvXZseAVruVy7oRHJ565AH/uPz2ZVL55Gz0LzcHw4HNRc2f+mSVAbHAuK7JDWtRlrZ3Fbav9qBrcVIAxTpnf5B2I2YMBMcu852Vkc3QIDAQAB","background":{"service_worker":"background.js"},"web_accessible_resources":[{"resources":["content-script.css","assets/img/logo.png"],"matches":[]}],"action":{"default_popup":"popup.html","default_title":"Logseq Copilot"}}
from logseq-copilot.
I add permission back.
from logseq-copilot.
Related Issues (20)
- The default template has '[[date]]'. Should be '[[{{date}}]]'.
- enhance: logseq copilot api from will change to same as logseq api from
- The automated release is failing π¨ HOT 1
- Refine the error message in Options page when can't connect to Logseq HOT 2
- Badge is missing in Firefox HOT 2
- should you add a shortcut for it? HOT 1
- Cannot work in some cases. HOT 9
- βToken not currect, Please checking your Logseq Authorization Setting HOT 7
- DuckDuckGo dark theme is unreadable HOT 6
- Use an indented block for the content in the Clip Template HOT 5
- [Feature] Automatic match the dark theme by search engine
- Cannot show query result. HOT 6
- Render video in Graph out HOT 3
- [QUESTION] chatGPT4Google HOT 1
- Results from Copilot not displaying when searching with Bing HOT 5
- Annotation Support HOT 2
- Unchecked runtime.lastError HOT 3
- Journale page used as dateformat, stops quickCapture from working HOT 1
- [Feature] Make Copilot work with startpage.com HOT 2
- How to support multi graph? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from logseq-copilot.