Skip to content

Instantly share code, notes, and snippets.

@wilt00
wilt00 / piano.html
Created August 28, 2022 23:26
A simple one-octave piano in <1kB of HTML/JS
<canvas id="p">
<script>
n = document.getElementById('p')
c = n.getContext('2d')
for(i=0;i<8;i++){c.strokeRect(i*37+2,1,37,148)}
bx=[24,67,134,176,218,286]
db=x=>c.fillRect(x,0,22,100)
bx.map(db)
@wilt00
wilt00 / filterYoutubeSubscriptions.user.js
Last active November 21, 2022 08:50
Add a section to the YouTube Subscriptions page sidebar, letting you filter videos by length, channel, and type
// ==UserScript==
// @name Filter Youtube Subscriptions
// @match https://www.youtube.com/*
// @grant none
// @version 1.1
// @author wilt00
// @description Add a section to the YouTube Subscriptions page sidebar, letting you filter videos by length, channel, and type
// @homepage https://gist.github.com/wilt00/17623ffbc0fb496cda843ddde487b13c
// @updateURL https://gist.github.com/wilt00/17623ffbc0fb496cda843ddde487b13c/raw/7f24c0945df306a1032d1635f9a77445063bc7fc/filterYoutubeSubscriptions.user.js
// @downloadURL https://gist.github.com/wilt00/17623ffbc0fb496cda843ddde487b13c/raw/7f24c0945df306a1032d1635f9a77445063bc7fc/filterYoutubeSubscriptions.user.js