L
L
LXSTVAYNE2020-07-03 22:49:46
Python
LXSTVAYNE, 2020-07-03 22:49:46

Is it possible to create browser extensions in Python?

Well, the point is clear. Is it possible or not? If yes, then with what? The idea for my extension is to change the html code when clicking on a link, but since I don't know js, I can hardly do it.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
C
cython, 2020-07-03
@cython

It depends on the browser, but 99.99% of which is not natively supported. Since to implement the extension of the program by user scripts, it is necessary to use a scripting language. Since any browser needs to process js, it is used to create extensions, because it's easier.
In principle, there is not much difference in the language, since it is just a tool. When writing an extension, you will need to work with the WebAPI and the browser API. And even if you use the transpiler from Sergey's answer, you still have to learn WebApi, which, for the most part, consists of client js.

S
Sergey Karbivnichy, 2020-07-03
@hottabxp

Create a chrome plugin with Python
Don't read below!
No. Python has nothing to do with js. Either learn js (if you know another PL, then you can write such an extension in a few days), or don't learn js. All in your hands.

T
Tikhon Ermakov, 2020-07-03
@the_goldmayer

No. Browsers have only one programming language - JS.

R
Ruslan, 2020-07-04
@ruzzz

None of the popular browsers has python support for writing extensions. And it is unlikely to happen in the near future. The de facto standard is javascript. Solutions that translate python to js can be studied for the sake of interest, but this experience is unlikely to help in prof. activities. Pure js is not complicated, but an interesting language, and most importantly, modern, in demand. It's better to take the time to study it. Even if there is no goal to become a professional in it, this does not fit for general development. And there will definitely not be any problems with writing extensions for the browser.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question