Skip to content

Instantly share code, notes, and snippets.

@ericelliott
ericelliott / essential-javascript-links.md
Last active May 17, 2024 03:38
Essential JavaScript Links
@leibovic
leibovic / dominant-color.js
Created June 9, 2011 16:27
Dominant Color
function getDominantColor(aImg) {
let canvas = document.createElement("canvas");
canvas.height = aImg.height;
canvas.width = aImg.width;
let context = canvas.getContext("2d");
context.drawImage(aImg, 0, 0);
// keep track of how many times a color appears in the image
let colorCount = {};
@sam33r
sam33r / MyWikipediaStyle.css
Created September 20, 2010 08:16
Custom styling for Wikipedia, removes everything except the content. Created for stylebot, via stylebot on Chrome. Some declarations will probably be redundant.
#p-logo a {
display: none;
}
#p-logo {
display: none;
}
div.noprint {
display: none;