mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-16 06:18:35 +02:00
It looks like in a previous change the website used to demonstrate the useragent rewriting was changed but the addon permission wasn't updated so the demonstration didn't work.
27 lines
732 B
JSON
27 lines
732 B
JSON
{
|
|
|
|
"description": "Adds browser action icon to toolbar to choose user agent string from popup menu. See https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Examples#user-agent-rewriter",
|
|
"manifest_version": 2,
|
|
"name": "user-agent-rewriter",
|
|
"version": "1.0",
|
|
"homepage_url": "https://github.com/mdn/webextensions-examples/tree/master/user-agent-rewriter",
|
|
"icons": {
|
|
"48": "icons/person-48.png"
|
|
},
|
|
|
|
"permissions": [
|
|
"webRequest", "webRequestBlocking", "https://httpbin.org/*"
|
|
],
|
|
|
|
"background": {
|
|
"scripts": ["background.js"]
|
|
},
|
|
|
|
"browser_action": {
|
|
"default_icon": "icons/person-32.png",
|
|
"default_title": "Choose a user agent",
|
|
"default_popup": "popup/choose_ua.html"
|
|
}
|
|
|
|
}
|