0

I'm looking for some way to create a very simple chrome extension in Python. I don't want, in fact, do anything inside the browser menu, like context menu for extensions.

For example: extension which inserts a length of word right after this word.

<p>Word</p> 

to

<p>Word 4</p> 

I've read this topic here but the questions are either old or assuming more complicated extension.

Is there a simple way to create such extension?

7
  • 1
    I've suggested to close this as duplicate, you're best bet is probably this: github.com/cztomczak/cefpython Otherwise chrome extensions use javascript and html. Commented Jan 13, 2016 at 22:40
  • I've read the question. The question above is way more specific I think. Commented Jan 13, 2016 at 22:41
  • 2
    im not sure its a dupe ... but certainly the last part of your comment is the answer (chrome extensions use javascript and html.) Commented Jan 13, 2016 at 22:42
  • @Jonathan As I just commented in the dupe, those are bindings for CEF, which is for making apps that embed Chromium. CEF is not compatible with Chrome extensions, and definitely can't be used to develop them. Commented Jan 13, 2016 at 22:46
  • There is probably no simple way to do this. If you end up finding a solution, it will almost certainly require calling JavaScript APIs through a Python bridge, which will still require some amount of JavaScript knowledge, add a lot of complexity, and be very likely to have a negative performance impact unless you structure your extension very carefully. It's possible that someone could have created a framework for this kind of thing, but I'm not aware of them and there's not much reason to do so (at least for logic interacting with the web page). Commented Jan 13, 2016 at 22:48

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.