Coder Social home page Coder Social logo

scriptex / css-diagnostics Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 72 KB

Highlight potentially invalid or erroneous HTML markup

Home Page: https://atanas.info/portfolio/open-source/css-diagnostics

License: MIT License

JavaScript 1.82% CSS 98.17%
chrome-extension diagnostics css-diagnostics markup-diagnostics

css-diagnostics's Introduction

Codacy Badge Codebeat Badge CodeFactor Badge DeepScan grade Analytics

CSS Diagnostics

Highlight potentially invalid or erroneous HTML markup.

An extension for Google's Chrome browser which highlights potentially invalid and erroneous HTML markup.

This extension uses a fork of the Holmes stylesheet.

Visitor stats

GitHub stars GitHub forks GitHub watchers GitHub followers

Code stats

GitHub code size in bytes GitHub repo size GitHub language count GitHub top language GitHub last commit

Installing from the Web Store

On Google Chrome

Visit Google Chrome's webstore

Click the Add to Chrome button.

On Mozilla Firefox

Visit Firefox add-ons website

Click on the + Add to Firefox button.

Installing from source

  1. Clone the repository: git clone https://github.com/scriptex/css-diagnostics
  2. Navigate to chrome://extensions and enable Developer Mode.
  3. Choose "Load unpacked extension"
  4. In the dialog, open the directory you just cloned.

Usage

Just click on the extension icon to turn on/off the diagnostics stylesheet.

You will see warnings in yellow rectangles and errors in red rectangles.

An explanation of the warning/error is given when you mouseover it.

Don't hesitate to file an issue if you find something wrong or would like help.

Contributing

Pull requests are welcome as long as they don't break the original idea of the extension.

LICENSE

MIT


Connect with me:

                     

Support and sponsor my work:

css-diagnostics's People

Contributors

imgbotapp avatar mend-bolt-for-github[bot] avatar scriptex avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

css-diagnostics's Issues

REVENGE.CSS

See if anything listed here is not yet a part of the current implementation. If not, add it.

Add this snippet (and adjust it)

html:not([lang]),
html[lang=""] {
  border: 5px solid red;
}

head,
head *:not(title) {
  display: block;
}

meta[charset]:not([charset="UTF-8"])::before {
  content: "CSS Diagnostics: Bad charset: " attr(charset) " ";
  display: block;
  color: red;
}

meta[charset]:not(:first-child)::after {
  content: "CSS Diagnostics: Bad charset: not first child";
  display: block;
  color: red;
}

meta[name="viewport"][content*="user-scalable=no"]::after,
meta[name="viewport"][content*="maximum-scale"]::after,
meta[name="viewport"][content*="minimum-scale"]::after {
  content: " • Bad viewport: " attr(content);
  display: block;
  color: red;
}

script[type="text/javascript"]::before {
  content: " • Unnecessary type attribute on script: " attr(type);
  display: block;
  color: red;
}

link[rel="stylesheet"][type="text/css"]::before {
  content: " • Unnecessary type attribute on link: " attr(type);
  display: block;
  color: red;
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.