This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const issues = []; | |
function warn(el) { | |
// Style the detected issues | |
el.style.outline = '2px solid #FFCC00'; | |
el.style.backgroundColor = '#FFCC00'; | |
el.style.backgroundImage = 'linear-gradient(135deg, rgba(255,0,0,1) 0%, rgba(255,204,0,1) 35%, rgba(0,212,255,1) 100%)'; | |
} | |
function checkScrollingAncestor(elem) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import subprocess | |
import sys | |
arg = sys.argv[1] | |
screeninfo = [ | |
s for s in subprocess.check_output("xrandr").decode("utf-8").split()\ | |
if s.count("+") == 2 | |
] |