Reputation: 81
I built a browser extension with Firebreath a couple of years ago, but now I realized that it isn't working anymore on Chrome because it doesn't support NPAPI anymore.
The extension reads the Windows Registry and returns a value.
Does anyone know what can I use to do the same in Chrome these days?
EDIT: After hours of work, I'm able to run the extension and the host app, but everytime I try to receive data, I get undefined.
This is my code:
int main(int argc, char* argv[]) {
char message[] = "{\"t\": \"t\"}";
unsigned int len = strlen(message);
_setmode(_fileno(stdout), _O_BINARY);
_setmode(_fileno(stdin), _O_BINARY);
printf("%c%c%c%c", (char) 10, (char) 0, (char) 0, (char) 0);
printf("%s", message);
return 0;
}
What am I doing wrong?
Upvotes: 4
Views: 1587
Reputation: 14324
Native Messaging is the only thing that would be able to do what you want.
Upvotes: 5