Skip to content

Instantly share code, notes, and snippets.

/* ==UserStyle==
@name Sidebars to the side
@namespace github.com/nightpool
@version 1.0.1
@description Tumblr sidebar fix v1
@author nightpool
==/UserStyle== */
@-moz-document domain("www.tumblr.com") {
#base-container:has(:is(.ogC81)) {
---- Minecraft Crash Report ----
// Daisy, daisy...
Time: 2023-11-26 05:24:30
Description: Watching Server
java.lang.Error: Watchdog
at net.minecraft.class_2919.method_43052(class_2919.java:50)
at net.minecraft.class_2919.method_12665(class_2919.java:78)
at com.telepathicgrunt.repurposedstructures.world.structures.placements.AdvancedRandomSpread.method_40169(AdvancedRandomSpread.java:110)
@nightpool
nightpool / 00-README.md
Last active May 24, 2021 16:23
NPF-to-HTML renderer

npf.js is the main bulk of the code, and it exposes three functions:

renderContent

Render content returns an object {content, ask}. It returns the ask content separately so it can be handled spearately by the consuming client. content is an HTML element, ask is itself an object containing content (an HTML element) and the other properties of the ask layout type (specifically of interest is the attribution property).

mentions

media

@nightpool
nightpool / README.md
Created September 22, 2020 03:08
Blaseball weather information

Current as of 2020-09-22T03:04:50.650Z.

To reproduce, search for "className: 'WeatherIcon'" in the site JS, set a breakpoint, and then run ye.map((o, i) => [i, {...o, icon: o.icon.type.displayName}])) (making sure to replace "ye" with whatever the weathers array is called in the new code, it should be right above the WeatherIcon component).

Icon names correspond exactly with component names from https://react-icons.github.io/react-icons/, specifically from the GameIcons and WeatherIcons sub-packages.

/* ==UserStyle==
@name Smaller root fontsize on tumblr.com
@namespace nightpool.club
@version 1.0.1
@author nightpool
==/UserStyle== */
@-moz-document domain("www.tumblr.com") {
:root {
--base-font-size: 14px !important;
@nightpool
nightpool / speedscope_tooltip_fix.user.css
Created February 6, 2020 16:58
Fix tooltipss getting cut off on speedscope.app
/* ==UserStyle==
@name Speedscope tooltip fix
@namespace github.com/nightpool
@version 1.0.0
@description Fix tooltipss getting cut off in sandwich view
@author nightpool
==/UserStyle== */
@-moz-document domain("speedscope.app") {
._5yoid0a._5yoid0a {
@nightpool
nightpool / 00a-unsigned_payload.json
Created November 26, 2019 01:17
JSON-LD signature example
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"ostatus": "http://ostatus.org#",
"atomUri": "ostatus:atomUri",
"inReplyToAtomUri": "ostatus:inReplyToAtomUri",
"conversation": "ostatus:conversation",
"sensitive": "as:sensitive",
"toot": "http://joinmastodon.org/ns#",
Andre
are
ared
bred
breth
chore
concrete
cremometer
cretic
cretion
/* ==UserStyle==
@name github tab size
@namespace nightpool.club
@version 1.0.0
@description smaller tabs on github!
@author nightpool
==/UserStyle== */
@-moz-document domain("github.com") {
.tab-size[data-tab-size="8"] {
@nightpool
nightpool / make a gif.sh
Last active November 17, 2022 08:52
make good looking small gifs
function gif() {
for file in "$@"
do
echo "${file%.*}".gif
ffmpeg -i "$file" -filter_complex "[0:v] fps=15,scale=w=${WIDTH:-960}:h=-1,split [a][b];[a] palettegen [p];[b] fifo [b]; [b][p] paletteuse" "${file%.*}".gif
done
}