Initial commit

This commit is contained in:
Miguel Sozinho Ramalho
2023-01-22 11:37:36 +00:00
committed by GitHub
commit 6f76e64973
25 changed files with 15425 additions and 0 deletions

16
source/content.js Normal file
View File

@@ -0,0 +1,16 @@
import optionsStorage from './options-storage.js';
console.log('💈 Content script loaded for', chrome.runtime.getManifest().name);
async function init() {
const options = await optionsStorage.getAll();
const color = 'rgb(' + options.colorRed + ', ' + options.colorGreen + ',' + options.colorBlue + ')';
const text = options.text;
const notice = document.createElement('div');
notice.innerHTML = text;
document.body.prepend(notice);
notice.id = 'text-notice';
notice.style.border = '2px solid ' + color;
notice.style.color = color;
}
init();