Skip to content

Instantly share code, notes, and snippets.

View hlfan's full-sized avatar

Marwin Hochfelsner hlfan

View GitHub Profile
@hlfan
hlfan / cc-by-sa.svg
Created March 4, 2025 12:14
A minified SVG that's comparable in size to the button PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hlfan
hlfan / faster_youtube_cinematics.css
Last active December 3, 2023 02:15
Using an svg filter to dynamize YouTube's slow cinematic bloom
/* https://gist.github.com/hlfan/fdb9863fd9871ecf55c4f5879c3b8d93 */
/* Actual bloom */
ytd-watch-flexy,
ytd-miniplayer,
ytd-shorts {
& #player-container .html5-video-container {
filter: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"><defs>\
<filter id="cinematic" width="200vw" height="200vw" x="-100vw" y="-100vw">\
<feGaussianBlur stdDeviation="610" in="SourceGraphic"/>\
<feColorMatrix values="1 0 0 0 0,0 1 0 0 0,0 0 1 0 0,0 0 0 2 0" result="blur610"/>\
@hlfan
hlfan / twitter-logo.css
Created April 4, 2023 05:37
force-resetting the twitter logo
pattern{display:none}
svg:has(g :not(path)){background:url(https://pbs.twimg.com/media/FBbGj5yWUAAUfk7.png:orig) no-repeat center/contain}