mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-17 14:59:12 +02:00
* Improve content script injection * Add an error handler for content script injection * Use a guard variable in the content script, instead * Fix comment * Ensure tabID is unchanged; fix image styles * Only inject script once; use CSS to hide page * Display an error when the script can't be executed; document other limitations * Log error on script execute failure
32 lines
346 B
CSS
32 lines
346 B
CSS
html, body {
|
|
width: 100px;
|
|
}
|
|
|
|
.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.button {
|
|
margin: 3% auto;
|
|
padding: 4px;
|
|
text-align: center;
|
|
font-size: 1.5em;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.beast:hover {
|
|
background-color: #CFF2F2;
|
|
}
|
|
|
|
.beast {
|
|
background-color: #E5F2F2;
|
|
}
|
|
|
|
.reset {
|
|
background-color: #FBFBC9;
|
|
}
|
|
|
|
.reset:hover {
|
|
background-color: #EAEA9D;
|
|
}
|