Tag Archives: Chrome

I came across a rather unusual feature that had to be implemented; I needed to inject a custom CSS file dynamically based on a certain set of rules to each page (using Chrome Extension’s content-script).

The rules I was asked to consider could not be implemented using match patterns (read more about content-scripts and match patterns in Google’s documentation), so I had to inject a Javascript page that will perform the relevant tests.

Read More