问题
I'm wondering if I would be able to write a chrome extension that would be able to toggle Switches in the browser, similar to how using the command line flag: "--disable-web-security" works.
In an ideal world, I would only set this flag for a single tab, but the ability to toggle the security flag on and off within the browser would be a good start.
Any ideas on if/how this can be accomplished?
回答1:
Unfortunately, there is no API for this.
来源:https://stackoverflow.com/questions/32210069/can-a-chrome-extension-toggle-switches-normally-set-as-command-line-flags