feat: url cleaner tool and extension update

This commit is contained in:
2026-02-27 06:11:12 +00:00
parent efe23a99ac
commit 7d989be27f
4 changed files with 37 additions and 2 deletions

View File

@@ -122,6 +122,17 @@ chrome.runtime.onMessage.addListener(async (request, sender, sendResponse) => {
return true;
}
if (request.action === 'writeClipboard') {
if (isSniffing) {
chrome.runtime.sendMessage({
target: 'offscreen',
type: 'write-clipboard',
data: request.content
}).catch(() => {});
}
return true;
}
if (request.type === 'clipboard-data' && request.target === 'background') {
// Received data from offscreen document
if (isSniffing && request.data && request.data !== lastClipboardContent) {