let USE_TRANSPARENT_INVERSION_HEURISTIC = true; let CACHE_TRANSPARENCY_TEST = true; let PAGE_BRIGHTNESS = 0.7; /* Elements with image data with a width and height both larger than ICON_THRESHOLD will be inverted regardless of their contents. Smaller images will still be inverted if they are transparent. If their transparency cannot be determined, they will still (still) be inverted if they are larger than ICON_THRESHOLD_1. The primary purpose of ICON_THRESHOLD is to minimizee the network and compute needed to determine the existence of alpha pixels for large images. The primary purpose of ICON_THRESHOLD_1 is to provide a good heuristic when we can't determine whether alpha pixels exist. */ let ICON_THRESHOLD = 100; let ICON_THRESHOLD_1 = 40; // Inject a