Problem
Example:
Create a html file and convert it to string format.
Update new tab while using blob object to create URL.
const blob = new Blob([`<html></html>`], { type: "text/html" });
await chrome.tabs.update(tab.id, { url: URL.createObjectURL(blob) });
manifest.json:
"content_scripts":[{
"matches": ["<all_urls>"],
"js": ["test.js"],
"all_frames": true,
"match_origin_as_fallback": true,
"run_at": "document_idle"
}]
Question Is it possible to inject content script to the url such like blob:chrome-extension://... ?