library to determine if the color parameter is a 'light' or a 'dark' color
This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyfork.org/scripts/491888/1827644/Light%20or%20Dark.js
Call the function lightOrDark() with the color you want to test.
Returns string "light" or "dark" accordingly.
For example:
const bgLightOrDark = lightOrDark(window.getComputedStyle(document.body).backgroundColor);