├── LICENSE ├── README.md ├── bookmarklet.js ├── index.html └── lint.css /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Chris Coyier 4 | (Code is from Ire Aderinokun's https://bitsofco.de/linting-html-using-css/) 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | - Ire Aderinokun's concept: https://bitsofco.de/linting-html-using-css/ 2 | - Demo page: https://chriscoyier.github.io/linting-html-with-css/ 3 | 4 | ### Bookmarklet 5 | 6 | ```js 7 | javascript:(function() { 8 | var link = document.createElement("link"); 9 | link.rel = "stylesheet"; 10 | link.href = "https://cdn.jsdelivr.net/gh/chriscoyier/linting-html-with-css/lint.css"; 11 | document.getElementsByTagName("head")[0].appendChild(link); 12 | })(); 13 | ``` 14 | 15 | ### Ideas: 16 | 17 | - ✅ Bookmarklet to inject CSS (done by Paul Esch-Laurent!) 18 | - ✅ Browser extension to inject the CSS (Done by Ire herself! https://github.com/ireade/alix) 19 | -------------------------------------------------------------------------------- /bookmarklet.js: -------------------------------------------------------------------------------- 1 | javascript:(function() { 2 | var link = document.createElement("link"); 3 | link.rel = "stylesheet"; 4 | link.href = "https://cdn.jsdelivr.net/gh/chriscoyier/linting-html-with-css/lint.css"; 5 | document.getElementsByTagName("head")[0].appendChild(link); 6 | })(); 7 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 | 6 |From Ire Aderinokun's article.
21 | 22 |