KaanErkol / my-style

My Style is a Google Chrome extension that allows you to insert custom CSS into pages, immediately see the visual results, and have that CSS persist for future visits.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

My Style

My Style is a Google Chrome extension that allows you to insert custom CSS into pages, immediately see the visual results, and have that CSS persist for future visits.

Usage

Take TechCrunch, for example. You may dislike the site's design and want to add your own touch--that is, your own style--to make it aesthetically pleasing. After installing the extension, visit TechCrunch and hit control + m in your browser. You should see a textarea to the right:

Techcrunch textarea

Insert your custom CSS and see results:

Techcrunch restyled

(Note: if you'd like this specific Techcrunch skin, it's available at styles/techcrunch.css.)

This CSS will be reinserted upon revisiting Techcrunch, thereby saving your styles. Pressing control + m once more will hide the textarea, but your contents will still be retained.

Installation

You may install My Style at the Chrome Web Store. Just click the 'Add to Chrome' button.

How it Works

My Style is quite simple. It inserts a textarea into the page, looks for changes to the textarea's contents, and updates a dynamically inserted style tag appropriately. My Style employs local storage to make CSS changes persistent. It uses simple technologies for a simple result.

Improvements

Sites that clear local storage can erase My Style's custom CSS. A more persistent form of storage (e.g. the JavaScript FileSystem APIs) would be a better option to retain CSS.

Contributors

Karthik Viswanathan

License

(The MIT License)

Copyright (c) 2012 Karthik Viswanathan <me@karthikv.net>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

My Style is a Google Chrome extension that allows you to insert custom CSS into pages, immediately see the visual results, and have that CSS persist for future visits.

License:MIT License


Languages

Language:JavaScript 100.0%