mirror of
https://github.com/miljegen/browser-milje.git
synced 2024-10-30 07:23:43 +00:00
extension should now communicate with the official website and hide an element from it
This commit is contained in:
parent
4a8f5cc2cf
commit
f68d9dad91
@ -2,7 +2,7 @@
|
|||||||
"manifest_version": 3,
|
"manifest_version": 3,
|
||||||
"name": "browser-milje",
|
"name": "browser-milje",
|
||||||
"description": "adds a milje table cloth on top of your browser viewport",
|
"description": "adds a milje table cloth on top of your browser viewport",
|
||||||
"version": "0.0.1",
|
"version": "0.0.2",
|
||||||
"action": {
|
"action": {
|
||||||
"default_popup": "popup.html",
|
"default_popup": "popup.html",
|
||||||
"default_icon": "assets/browser-milje.png"
|
"default_icon": "assets/browser-milje.png"
|
||||||
@ -15,8 +15,9 @@
|
|||||||
},
|
},
|
||||||
"content_scripts": [
|
"content_scripts": [
|
||||||
{
|
{
|
||||||
"js": ["scripts/milje.js"],
|
|
||||||
"matches": ["<all_urls>", "file:///"]
|
"matches": ["<all_urls>", "file:///"],
|
||||||
|
"js": ["scripts/milje.js"]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -20,4 +20,7 @@ div.style.backgroundSize = 'contain'
|
|||||||
div.style.backgroundRepeat = 'no-repeat'
|
div.style.backgroundRepeat = 'no-repeat'
|
||||||
div.style.backgroundPosition = 'center'
|
div.style.backgroundPosition = 'center'
|
||||||
div.style.transform = 'translateY(-50%)'
|
div.style.transform = 'translateY(-50%)'
|
||||||
document.body.appendChild(div)
|
document.body.appendChild(div)
|
||||||
|
|
||||||
|
const message = { extensionDetected: true };
|
||||||
|
window.postMessage(message, "*");
|
Loading…
Reference in New Issue
Block a user