Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function () {
- const found = [];
- const all = document.querySelectorAll("*");
- for (let element of all) {
- if (parseInt(element.style.width, 10) <= 1 && parseInt(element.style.height, 10) <= 1) {
- found.push(element);
- }
- }
- console.clear();
- console.log(`Found ${found.length} pixels:`);
- for (let element of found) {
- console.log(`${element.style.width}x${element.style.height}`, element);
- }
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement