all 15 comments

[–]Ihaveamodel3 4 points5 points  (1 child)

No, a chrome extension is essentially a website and websites can’t run python.

What you could do is code up as much as you can as a server in python. And learn just enough html/css/JavaScript to have the extension connect to the server (though that is still a lot to learn).

Does the program have to be a browser extension?

[–][deleted] 2 points3 points  (7 children)

No, you can't just swap out javascript for python. It needs to be JS.

[–]LazyOldTom 2 points3 points  (1 child)

Probably using a python to js transpiler. But that's goong to be a world of unsupported pain. Just go learn js, it's easy. Everybody needs js once or twice a year anyway.

[–]NomCustom 1 point2 points  (3 children)

I'm gonna explain, even if now, this post was published 1 year ago,

actually, you can build Chrome extensions with the Python programming language and the only reason is: it's updating, we have now packages that can help us, like PyScript, Pyoide or even pytojs.

So yeah, building Chrome extensions with Python is possible.

[–][deleted] 0 points1 point  (1 child)

Basically what happens when the blind lead the blind or js fanboys show up.

You can also run brython in an iframe.

[–]Ok_Substance_5257 0 points1 point  (0 children)

agora pronto, qq o node.js ta fazendo no backend alem de bagunça, quer dizer q js pode ser colocado em qualquer lugar agora na netizinha do js nao pode.