Skip to main content
Code Review

Return to Question

deleted 6 characters in body; edited title
Source Link
Jamal
  • 35.2k
  • 13
  • 134
  • 238

Font and color checker chrome extension in JavascriptJavaScript

I have written the belowthis code for a color and font checker on a webpage.

inject.js

inject.js

Font and color checker chrome extension in Javascript

I have written the below code for a color and font checker on a webpage.

inject.js

Font and color checker chrome extension in JavaScript

I have written this code for a color and font checker on a webpage.

inject.js

Notice removed Canonical answer required by Bhansa
Bounty Ended with Sᴀᴍ Onᴇᴌᴀ's answer chosen by Bhansa
edited tags
Link
Notice added Canonical answer required by Bhansa
Bounty Started worth 50 reputation by Bhansa
added 5 characters in body
Source Link
Bhansa
  • 141
  • 8

PoC: I want to highlight all the colors or fonts which should not be used on the webpage(the domain is defined by me as of now). I am traversing the DOM and checking the color and font styles and then highlight them if there are values out of my domain.

The current approach is very naive and not optimal because I am traversing and storing element styles, which is bad for duplicated DOM elements.

PoC: I want to highlight all the colors or fonts which should not be used on the webpage(the domain is defined by me as of now). I am traversing the DOM and checking the color and font styles and then highlight them if there are values out of my domain. The current approach is very naive and not optimal because I am traversing and storing element styles, which is bad for duplicated DOM elements.

PoC: I want to highlight all the colors or fonts which should not be used on the webpage(the domain is defined by me as of now). I am traversing the DOM and checking the color and font styles and then highlight them if there are values out of my domain.

The current approach is very naive and not optimal because I am traversing and storing element styles, which is bad for duplicated DOM elements.

edited title
Link
Bhansa
  • 141
  • 8
Loading
edited body
Source Link
Bhansa
  • 141
  • 8
Loading
deleted 739 characters in body
Source Link
Bhansa
  • 141
  • 8
Loading
edited tags
Link
Bhansa
  • 141
  • 8
Loading
Source Link
Bhansa
  • 141
  • 8
Loading
lang-js

AltStyle によって変換されたページ (->オリジナル) /