Git Product home page Git Product logo

aaa-devtool-snippets-collect's Introduction

DevToolsSnippets

A collection of front-end debugging script snippets to be used in the Sources panel in Chrome DevTools.

The “Snippets” section highlighted in the sources panel in Chrome DevTools

You can copy these scripts and add them to your collection of snippets.

This not a replacement for automatic testing tools like the HTML validator, Lighthouse, axe, or Wave. This collection of scripts is meant to be used in addition to automatic testing tools.

Scripts

Document Info

  • Logs the page <title>
  • Logs the page description
  • Logs the defined natural language
  • Logs the charset
  • Logs the number of DOM nodes in <head>
  • Logs the number of DOM nodes in <body>
  • Lists headings and document outline

Demo output of the basic document information, including the heading outline that shows empty and skipped headings

Details about documentinfo.js

Debug images

  • Lists images without width and/or height attributes
  • Lists images with empty alt attributes
  • Lists images with suspicious alt attributes

Demo output of the image debugging script that lists images with suspicious and empty alts and images with missing width or height attributes

Details about debugimages.js

Remove CSS

For testing HTML output without CSS.

  • Removes all <link>s to CSS files
  • Removes all style elements
  • Removes all style attributes

Details about removecss.js

Is x present?

  • Checks if elements that usually should be present, are actually there.
  • Checks if elements that probabaly shouldn’t be present, aren’t there.

Demo output of the “Is x present?” script that lists a bunch of warning related to malformed HTML

Details about isxpresent.js

aaa-devtool-snippets-collect's People

Contributors

davidleininger avatar matuzo avatar patrickhlauke avatar

Watchers

 avatar

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.