Today I found this:
https://github.com/gildas-lormeau/SingleFile/discussions/1226
I tried to use this with GoogleChrome
https://chrome.google.com/webstore/detail/singlefile/mpiodijhokgodhhofbcjdecpffjipkle
I found some solution here:
https://stackoverflow.com/a/75376708/5314940
And I'm trying to do it this way:
function send(extensionId, msg, callback, retry = 20) {
const timer = setTimeout(send, 100, extensionId, msg, callback, retry - 1);
chrome.runtime.sendMessage(extensionId, msg, response => {
if (!chrome.runtime.lastError || !retry) {
clearTimeout(timer);
callback(response);
}
});
};
send('{531906d3-e22f-4a6c-a102-8057b88a1a63}', '{ action: "save-page" }');
But errors occurs.
Any help with how to use it with JS ?
EIDT:
After finding a way I provide example in AutoIt