Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View kovetskiy's full-sized avatar
🏊

Egor Kovetskiy kovetskiy

🏊
View GitHub Profile
@kovetskiy
kovetskiy / main.js
Created June 4, 2020 13:28 — forked from kdzwinel/main.js
List all undefined CSS classes
/*
This script attempts to identify all CSS classes mentioned in HTML but not defined in the stylesheets.
In order to use it, just run it in the DevTools console (or add it to DevTools Snippets and run it from there).
Note that this script requires browser to support `fetch` and some ES6 features (fat arrow, Promises, Array.from, Set). You can transpile it to ES5 here: https://babeljs.io/repl/ .
Known limitations:
- it won't be able to take into account some external stylesheets (if CORS isn't set up)
- it will produce false negatives for classes that are mentioned in the comments.
["<Return>", "i"] : Inspect (focus) message
["I"] : Open the message in new tab
["<Space>"] : Scroll message or select next unread one
["t"] : Select thread
["d", "<Del>"] : Move mail to Trash folder
["j", "<Right>"] : Select next message
["gj"] : Select next message, including closed threads
["J", "<Tab>"] : Select next unread message
["k", "<Left>"] : Select previous message
["gk"] : Select previous message