Lily Chen — Building a Chrome Extension Using Mostly CSS

Lily is a Product Designer based in San Francisco.
Currently, AngelList. Previously, IBM.

↑ Back

Building a Chrome Extension Using Mostly CSS

This was my first attempt at a Chrome extension, which was overall, an excellent experience. Google has nicely documented its javascript APIs, which were essentially all I needed for this simple extension that I managed to hack over a weekend.

Overview has been one of the most timeless services on the web, offering vast amount of information to its users for free. However, at the same time, it has been one of the most unchanging platforms in terms of interface.

For users who solely seek to gather information quickly, the old layout can be distracting. So in an effort to not only beautify presentation, I’ve also hidden the lesser used features such as switching languages (as this is a English only extension for now), editing, viewing edit history, and a few minor others.

Injecting CSS

Because I wanted to finish this project in just 2 days, WikiReader works almost entirely by overriding existing CSS styles. I do this by injecting a stylesheet using a few lines of code:

"content_scripts": [
    "matches": ["*://**"],
    "css": ["dist/css/wiki.min.css"]

Of course, this can cause enormous backlash if Wikipedia chooses to change its element ids and classes but I’m banking on its earlier mentioned tendency to be rather unchanged for the next few years.


I’ve shipped the extension to the Chrome store here, also purely for exercise, and have gotten a few feedback emails already (both good and bad). Ultimately, I’m probably my best audience because I continue to use WikiReader to this day. If I had a bit more time, I might revisit this project and spruce up the following: