Bowerbird 0.5
|
Date Added: |
Feb 23, 2013 04:32 AM |
Publisher's Description: |
The document.styleSheets API is used (when available) to go through all CSS rules present and extract colors mentioned. This gives us a list of colors mentioned in stylesheets, some of which may not even be present on the page.
There are a few restrictions to this API, though. It is not available for file:// URLs, and sometimes fails for stylesheets loaded from a third-party URL.
We also iterate over each element on the page and use getComputedStyle in order to get all the colors currently present on the page.
Todo
Creating a Safari extension.
Sometimes, stylesheets can't be parsed — figure out why, and use workarounds.
Add a color picker when editing colors.
Parse complex CSS values like gradients.
License
Bowerbird is under an MIT license.
We use some code from Webkit's excellent developer tools, the files are present un-modified in the vendor directory.
|
Documentation: |
http://nthloop.github.com/bowerbird/ |
Last Download: |
Apr 10, 2024 07:12 AM
|
Downloads: |
237 |
OS: |
Windows |
Rating: |
|
|
|