Mobile View Switcher
Switch to mobile view with one click via toolbar button.
Additional files are visible only to premium users
manifest.json
{
"version": "0.2.0",
"manifest_version": 3,
"name": "Mobile View Switcher",
"host_permissions": [
"*://*/*"
],
"homepage_url": "https://mybrowseraddon.com/mobile-view-switcher.html",
"description": "Switch to mobile view with one click via toolbar button.",
"background": {
"service_worker": "background.js"
},
"options_ui": {
"open_in_tab": true,
"page": "data/options/options.html"
},
"permissions": [
"storage",
"scripting",
"contextMenus",
"declarativeNetRequest"
],
"commands": {
"toggle-mobile-view": {
"description": "Switch to Mobile View",
"suggested_key": {
"mac": "Command+Shift+D",
"default": "Ctrl+Shift+D"
}
}
},
"action": {
"default_title": "Mobile View Switcher",
"default_icon": {
"16": "data/icons/16.png",
"32": "data/icons/32.png",
"48": "data/icons/48.png",
"64": "data/icons/64.png"
}
},
"content_scripts": [
{
"all_frames": true,
"matches": [
"*://*/*"
],
"run_at": "document_start",
"js": [
"data/content_script/inject.js"
]
}
],
"icons": {
"16": "data/icons/16.png",
"32": "data/icons/32.png",
"48": "data/icons/48.png",
"64": "data/icons/64.png",
"128": "data/icons/128.png"
},
"update_url": "https://edge.microsoft.com/extensionwebstorebase/v1/crx"
}