-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: disable integrations per website #830
Conversation
60eab90
to
4e8eec1
Compare
This change replaces per-site redirect toggle with one that disables ALL IPFS integrations: redirect, content scripts, and access to API via window.ipfs It also changes the order of menu items to prioritize actions related to a current tab.
4e8eec1
to
12440ff
Compare
"message": "Redirect on $1", | ||
"description": "A menu item in Browser Action pop-up (panel_activeTabSiteRedirectToggle)" | ||
"panel_activeTabSiteIntegrationsToggle": { | ||
"message": "Enable on $1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if Enable on <hostname>
is the best label for this menu item, but it is short and simple.
Let me know if there is a better one.
@@ -280,7 +280,7 @@ | |||
"description": "An option description on the Preferences screen (option_useCustomGateway_description)" | |||
}, | |||
"option_dnslinkRedirect_title": { | |||
"message": "Force page load from custom gateway", | |||
"message": "Load websites from Custom Gateway", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Softening language because we restored the old behavior in #831
(and matching capitalization from other places)
I'm merging this to ship in beta before v2.10. |
This PR replaces per-site redirect toggle with one that disables ALL IPFS integrations: redirect to local gateway, injection of content scripts, DOM changes, and access to API via window.ipfs
closes #828, closes #820, cc #710, #689, #589
Motivation
Instead of disabling redirect per website, users should be able to disable all integrations that change page, mutate DOM etc.
Tasks
window.ipfs
(
noRedirectHostnames
→noIntegrationsHostnames
)Preview
User can disable IPFS per host, including DNSLink websites:
If website is powered by DNSLink, the toggle will disable redirect, but there will be an option to open it manually:
We redirect DNSLink websites by default, but this behavior can be tweaked via Preferences: