Manipulate a page from a chrome extension

In the last days I experimented with a small chrome extension and I ran into trouble to manipulate a¬†website which was currently active in the browser. The use case was that a user can right click into an input field, select an entry from the context menu (which was extended by my extension) and then the input field should be filled with some text. First, I thought this would be very easy, but because of Chrome’s security¬†restrictions, it’s not that easy. I would like to explain how I’ve come to a solution:

Continue reading