Skip to content

Instantly share code, notes, and snippets.

@drequeary
drequeary / newTabBackgroundSingle.css
Last active November 3, 2025 13:48
Changes new tab background for Firefox.
@-moz-document url("about:newtab"), url("about:home"), url(about:privatebrowsing) {
/* Sets background image and autoscale image to browser window. */
body{
background-image: url("") !important;
background-size: cover !important;
background-repeat: no-repeat !important;
background-attachment: fixed !important;
background-position-x: center !important;
background-position-y: bottom !important;
}
@drequeary
drequeary / newTabBackground.css
Last active March 26, 2025 21:52
CSS for customizing new tab background in Firefox userContent.css.
@-moz-document url("about:home") {
/* Sets home tab background image. */
body{
background-image: url("") !important;
}
}
@-moz-document url("about:newtab") {
/* Sets new tab background image. */
body{
@drequeary
drequeary / gifski-video.bat
Last active June 17, 2024 15:42
Uses FFmpeg to create image sequences, then Gifski to make animated gif.
Echo off
set /p video=Enter Input Filename (with file extension):
set /p output=Enter Output Filename (without extension):
set /p ffmpeg_options=Enter FFmpeg Options:
set /p gifski_options=Enter Gifski Options:
mkdir %temp%\gifski_sequence
ffmpeg.exe -i %video% %ffmpeg_options% %temp%\gifski_sequence\frame%%04d.png
gifski.exe %gifski_options% -o %output%.gif %temp%\gifski_sequence\frame*.png
@drequeary
drequeary / Grid Layout Example 2.html
Last active April 20, 2021 13:30
Simple example of Grid using template area.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Grid 2</title>
<style>
* {
@drequeary
drequeary / Grid Layout Example.html
Last active May 2, 2021 16:47
Simple example of Grid using template area names.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Grid</title>
<style>
* {