Skip to content

Instantly share code, notes, and snippets.

View olmokramer's full-sized avatar
💭
#codegradelife

Olmo Kramer olmokramer

💭
#codegradelife
View GitHub Profile
@olmokramer
olmokramer / css-color-regex
Last active December 9, 2023 12:52
Regex for CSS colors: hex, rgb(a), hsl(a)
/(#([0-9a-f]{3}){1,2}|(rgba|hsla)\(\d{1,3}%?(,\s?\d{1,3}%?){2},\s?(1|0?\.\d+)\)|(rgb|hsl)\(\d{1,3}%?(,\s?\d{1,3}%?\)){2})/i
@olmokramer
olmokramer / config.py
Created September 6, 2018 22:53
Qutebrowser per-domain stylesheets
c.content.user_stylesheets = ['/path/to/reddit.user.css']
# or if you have a directory with .user.css files:
import glob
c.content.user_stylesheets = glob.glob('/path/to/*.user.css')