I am trying to write a scroll to top chrome extension that can automatically detect the colour scheme of the website that it is being placed on.
I thought that the best way to do this was by grabbing the very first (top left) pixel on the page and getting the colour of it.
I've searched around SO and found how to do it with an image which means that I could grab a screenshot of the page and just process the image, however I was hoping that there is a much more sophisticated way to do this. The search lead me here: How to get a pixel's x,y coordinate color from an image?
I can include JS packages to do this but I can't seem to find any that can do the specific task that I want.
I currently use jQuery in my project so I can use either or to do this.