Skip to content

Instantly share code, notes, and snippets.

View mreinstein's full-sized avatar
💥
ABC always be codin!

Michael Reinstein mreinstein

💥
ABC always be codin!
View GitHub Profile

building on macos

Get all of the deps from brew:

brew update
brew upgrade
brew install hg git go cmake ninja
@mreinstein
mreinstein / css-color-invert.js
Last active March 4, 2024 18:45
invert all colors on a web page
// invert all colors on the page
export default function invert() {
let css = 'html {-webkit-filter: invert(100%);' +
'-moz-filter: invert(100%);' +
'-o-filter: invert(100%);' +
'-ms-filter: invert(100%); }',
head = document.getElementsByTagName('head')[0],
style = document.createElement('style')
if (!window.counter) {