mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-17 23:08:33 +02:00
add in different theme images (#294)
This commit is contained in:
@@ -25,6 +25,7 @@ When the user clicks the reset button, the page reloads, and reverts to its orig
|
|||||||
## What it shows ##
|
## What it shows ##
|
||||||
|
|
||||||
* write a browser action with a popup
|
* write a browser action with a popup
|
||||||
|
* how to have different browser_action images based upon the theme
|
||||||
* give the popup style and behavior using CSS and JS
|
* give the popup style and behavior using CSS and JS
|
||||||
* inject a content script programmatically using `tabs.executeScript()`
|
* inject a content script programmatically using `tabs.executeScript()`
|
||||||
* send a message from the main extension to a content script
|
* send a message from the main extension to a content script
|
||||||
|
|||||||
BIN
beastify/icons/beasts-32-light.png
Normal file
BIN
beastify/icons/beasts-32-light.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 550 B After Width: | Height: | Size: 1.1 KiB |
@@ -11,14 +11,19 @@
|
|||||||
|
|
||||||
"permissions": [
|
"permissions": [
|
||||||
"activeTab"
|
"activeTab"
|
||||||
],
|
],
|
||||||
|
|
||||||
"browser_action": {
|
"browser_action": {
|
||||||
"default_icon": "icons/beasts-32.png",
|
"default_icon": "icons/beasts-32.png",
|
||||||
|
"theme_icons": [{
|
||||||
|
"light": "icons/beasts-32-light.png",
|
||||||
|
"dark": "icons/beasts-32.png",
|
||||||
|
"size": 32
|
||||||
|
}],
|
||||||
"default_title": "Beastify",
|
"default_title": "Beastify",
|
||||||
"default_popup": "popup/choose_beast.html"
|
"default_popup": "popup/choose_beast.html"
|
||||||
},
|
},
|
||||||
|
|
||||||
"web_accessible_resources": [
|
"web_accessible_resources": [
|
||||||
"beasts/frog.jpg",
|
"beasts/frog.jpg",
|
||||||
"beasts/turtle.jpg",
|
"beasts/turtle.jpg",
|
||||||
|
|||||||
Reference in New Issue
Block a user