Skip to content

Instantly share code, notes, and snippets.

Avatar

Filip H.F. "FiXato" Slagter FiXato

View GitHub Profile
@FiXato
FiXato / mastodon.user.js
Last active Nov 16, 2022
TamperMonkey UserScript to tweak the UI of the Toot.Cat Mastodon Glitch-Soc instance
View mastodon.user.js
// ==UserScript==
// @name TootCat Mastodon UI tweaks
// @namespace http://tampermonkey.net/
// @version 1.2
// @description Styling tweaks for the Mastodon instance I use.
// @author FiXato
// @match https://toot.cat/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// ==/UserScript==
@FiXato
FiXato / Mastodon-indicate_undescribed_media_with_borders-subtler.user.css
Last active Dec 1, 2022
CSS user style to add a red border around media (images, audio, video and animated 'gifv') that lacks a description. Based on code by Paul: https://linernotes.club/@balrogboogie
View Mastodon-indicate_undescribed_media_with_borders-subtler.user.css
/* indicate media without a description
initial code by Paul (https://linernotes.club/@balrogboogie), expanded upon by FiXato (https://contact.fixato.org)
related discussions: https://dragonscave.space/@Mayana/106443499687608116.
Feel free to reuse it; it's public domain (https://linernotes.club/@balrogboogie/106681622019395866) */
.media-gallery__item-thumbnail img:not([alt]),
.audio-player__canvas:not([title]),
.video-player video:not([title]),
.media-gallery__gifv video:not([title])
{
border: 1px dashed rgba(255, 0, 0, 0.5);
@FiXato
FiXato / OutlineDemopartyNL-Wuhu-fluid.user.js
Created May 14, 2021
UserScripts for Outline Demoparty
View OutlineDemopartyNL-Wuhu-fluid.user.js
// ==UserScript==
// @name Outline Demoparty - Voting page
// @namespace https://fixato.org
// @version 0.1
// @description Make the Outline Demoparty voting pages a bit more fluid
// @author FiXato
// @match https://wuhu.outlinedemoparty.nl/*
// @icon https://yt3.ggpht.com/ytc/AAUvwni9hwZW-ca3xpy-72nsG6m4tQ9in4LFNMQgLlXTFQ=s68-c-k-c0x00ffffff-no-rj
// @grant none
// ==/UserScript==
View asciidoc question about footnotes inside links.md
@FiXato
FiXato / listing_manipulation.tcl
Last active May 12, 2021
An openMSX TCL script to copy the contents of the current LISTing to your clipboard. Just dump this in your profile's openMSX/share/scripts directory and you can use the copy_ascii_listing_to_clipboard command
View listing_manipulation.tcl
namespace eval listing_manipulation {
proc strip_memory_addresses {str} {
return [regsub -all -line {^[0-9a-f]x[0-9a-f]{4} > } $str ""]
}
proc copy_ascii_listing_to_clipboard {} {
set_clipboard_text [strip_memory_addresses [listing]]
}
namespace export copy_ascii_listing_to_clipboard
}
namespace import listing_manipulation::*
@FiXato
FiXato / launcher.py
Last active Dec 16, 2020
[OBSOLETE] A TUI-based launch app written in Python for kelbot
View launcher.py
#!/usr/bin/env python3
# encoding: utf-8
# NOTE: THIS VERSION HAS BEEN MADE OBSOLETE BY THIS REPOSITORY: https://github.com/FiXato/tui_launcher
from math import floor
import argparse
import urwid
import asyncio
urwid.set_encoding("utf8")
arg_parser = argparse.ArgumentParser(description='Launch tools via buttons.')
arg_parser.add_argument('--term-width', nargs=1)
@FiXato
FiXato / MorseMedium.py
Last active Nov 23, 2020
Read Medium.com article through Morse code pulsed via your ScrollLock light, and on Windows via Winsound.beep() too
View MorseMedium.py
import pyautogui
pyautogui.FAILSAFE = False
from pyautogui import press, FAILSAFE
from morse3 import Morse as m
from bs4 import BeautifulSoup
import urllib.request
from time import sleep
URL = "https://medium.com/risan/upgrade-your-ssh-key-to-ed25519-c6e8d60d3c54"
req = urllib.request.Request(
@FiXato
FiXato / comics_tweaks.user.js
Last active Nov 10, 2020
Tweaks for various comics, such as visible alt and title texts, adding ctrl+left/right keyboard shortcuts for previous and next comic, prefetching prev/next link documents, and a kioskmode. Currently supported: xkcd and the (NSFW) comic "Oglaf".
View comics_tweaks.user.js
// ==UserScript==
// @name Comics tweaks
// @author Filip H.F. "FiXato" Slagter
// @namespace http://code.fixato.org/userscripts
// @description Some tweaks for various comic sites, such as visible alt text, and kiosk mode. Currently supports: Oglaf, xkcd.
// @match https://oglaf.com/*
// @match https://www.oglaf.com/*
// @match https://xkcd.com/*
// @match https://www.xkcd.com/*
// @version 2.1
@FiXato
FiXato / autopause.tcl
Created Oct 26, 2020
autopause script for openMSX
View autopause.tcl
namespace eval autopause {
proc autopause {} {
message "pause: [set ::pause]"
::set ::pause true
};
after realtime 0.1 autopause::autopause
};
@FiXato
FiXato / download_studio_ghibli_promo_pics.sh
Last active Jan 6, 2021
Shell script to download freely released Studio Ghibli images
View download_studio_ghibli_promo_pics.sh
#!/usr/bin/env bash
#encoding: utf-8
#Shell script to download freely released Studio Ghibli images (http://www.ghibli.jp/info/013344/)
film_names=( "marnie" "kaguyahime" "kazetachinu" "kokurikozaka" "karigurashi" "ponyo" "ged" "chihiro")
for film_name in "${film_names[@]}"; do
mkdir -p "./${film_name}" && curl "http://www.ghibli.jp/images/${film_name}.jpg" -o "./${film_name}/${film_name}.jpg" && curl "http://www.ghibli.jp/gallery/${film_name}[001-050].jpg" -H "Referer: http://www.ghibli.jp/works/${film_name}/#frame" -o "./${film_name}/${film_name}-#1.jpg"
done