Skip to content

Instantly share code, notes, and snippets.

View dawnFirefly's full-sized avatar

Dawn Firefly dawnFirefly

View GitHub Profile
@defron
defron / theater-mode-youtube-stlying-fixes-ublock-origin
Last active October 29, 2025 02:15
fix youtube's desktop theater mode styling to be more like before via ublock origin
! works on my machine, may need tweaks, only tested in firefox
! please feel free to comment additional improvements
! make the new youtube ui make sense on a large desktop screen
! bring back 4-by-3 grid layout for the recommended videos
youtube.com##.ytp-fullscreen-grid-stills-container:style(grid-template-columns: repeat(4,1fr) !important; height: calc(100% - 48px) !important;)
youtube.com##.ytp-modern-videowall-still:style(display: block !important;)
youtube.com##.ytp-modern-videowall-still:hover .ytp-modern-videowall-still-info:style(opacity: 0.8 !important;)
youtube.com##.ytp-modern-videowall-still-info:style(position: absolute !important; bottom: 0; left: 0; opacity: 0.6; width: 100%; background-color: black !important;)
youtube.com##.ytp-modern-videowall-still-info:hover:style(opacity: 0.8 !important;)
@AgentOak
AgentOak / youtube_formats.md
Last active November 10, 2025 02:34
Youtube Format IDs

Last updated: April 2021

Also known as itag or format codes and way back they could be specified with the fmt parameter (e.g. &fmt=22). Depending on the age and/or popularity of the video, not all formats will be available.

DASH video

Resolution AV1 HFR High AV1 HFR AV1 VP9.2 HDR HFR VP9 HFR VP9 H.264 HFR H.264
MP4 MP4 MP4 WebM WebM WebM MP4 MP4
@hibiyasleep
hibiyasleep / GodDrinksJava.java
Last active November 16, 2025 17:46
world.execute(me);
package goddrinksjava;
/**
* The program GodDrinksJava implements an application that
* creates an empty simulated world with no meaning or purpose.
*
* @author momocashew
* @lyrics hibiyasleep
*/
@AnimeshShaw
AnimeshShaw / Img2Ascii.java
Created June 15, 2015 10:59
Image to Ascii Art in Java
import java.awt.Color;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import javax.imageio.ImageIO;
public class Img2Ascii {