mirror of
https://github.com/bellingcat/auto-archiver-extension.git
synced 2026-06-07 19:18:33 +03:00
17 lines
554 B
JavaScript
17 lines
554 B
JavaScript
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();
|