mirror of
https://github.com/obsqrbtz/goose-highlighter.git
synced 2026-04-09 04:29:09 +03:00
fix: do not create <mark> elements, just wrap found words in <span> and add .css styling
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
chrome.tabs.onUpdated.addListener((tabId, changeInfo, tab) => {
|
||||
if (changeInfo.status === "complete" && /^https?:/.test(tab.url)) {
|
||||
if (changeInfo.status === 'complete' && /^https?:/.test(tab.url)) {
|
||||
chrome.scripting.executeScript({
|
||||
target: { tabId },
|
||||
files: ["main.js"]
|
||||
files: ['main.js']
|
||||
}).catch(err => {
|
||||
console.warn("Injection failed:", err);
|
||||
console.warn('Injection failed:', err);
|
||||
});
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user