Skip to content

Instantly share code, notes, and snippets.

View sinsinpub's full-sized avatar

sin_sin sinsinpub

  • Free
View GitHub Profile
@sinsinpub
sinsinpub / discord_preferences.css
Last active December 18, 2025 08:20
Better discord styles for ja lang
@-moz-document domain("discord.com") {
:lang(ja) {
--font-primary: "Segoe UI","Hiragino Sans","ヒラギノ角ゴ ProN W3","Hiragino Kaku Gothic ProN",メイリオ,Meiryo,Osaka,"MS PGothic","Noto Sans","Microsoft YaHei","Helvetica Neue",Helvetica,Arial,sans-serif;
--font-display: "gg sans","Hiragino Sans","ヒラギノ角ゴ ProN W3","Hiragino Kaku Gothic ProN",メイリオ,Meiryo,Osaka,"MS PGothic","Noto Sans","Microsoft YaHei","Helvetica Neue",Helvetica,Arial,sans-serif;
--font-code: Consolas, "gg mono", 'Source Code Pro', 'Andale Mono WT', 'Andale Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono', 'Nimbus Mono L';
}
#app-mount > div > div > div:nth-child(3) > div > div[class*="tooltip"],
#app-mount main > form div[class*="channelTextArea"] div > div[aria-label="ギフトを贈る"],
#app-mount main > form div[class*="channelTextArea"] div > div[aria-label="GIFピッカーを開く"],
#app-mount main > form div[class*="channelTextArea"] div > div[aria-label="スタンプピッカーを開く"],
@sinsinpub
sinsinpub / inoreader_preferences.css
Created April 18, 2025 07:18
Better inoreader.com fonts and CSS preferences
@-moz-document domain("www.inoreader.com"), domain("inoreader.com") {
/*
body { font-family: sans-serif!important; }
.article_content { font-size:13px !important; }
.article_title_link { font-weight: bold !important; font-size:20px !important; }
*/
body { font-family: Tahoma, "Helvetica Neue", "Meiryo", "Hiragino Sans GB", "Microsoft YaHei", sans-serif !important; }
.article_content, .article_content h3 { font-family: Verdana, Geneva, Public Sans, Meiryo, "Hiragino Sans GB", "Microsoft YaHei", sans-serif !important; }
.tabs-nav .nav-item a[data-tab=profile] .icon-gift,
.block_article_ad, .ad_title, #black_friday,
@sinsinpub
sinsinpub / CHIP8I.BAS
Last active March 7, 2025 05:22
CHIP8 interpreter with simple debugger for QBasic. Display viewer and better timing added, more configs for SCHIP48 quirks. Compiled with QuickBASIC for playable speed under DOS/DOSBox emulator. (WTFPL)
' CHIP-8 interpreter with simple debugger for QBasic
' 1234qwerasdfzxcv = keypad, Esc = quit, Backspace = toggle debugger,
' see checkinput for more key bindings
DEFINT A-Z
DECLARE SUB chip8exec ()
DECLARE SUB chip8reset ()
DECLARE SUB chip8run ()
DECLARE SUB fetch (ofs)
DECLARE SUB debugger ()
@sinsinpub
sinsinpub / agetv_historysort.user.js
Last active October 28, 2023 14:06
Age.tv history sorter userscript.
// ==UserScript==
// @name Age.tv history sorter
// @namespace https://gist.github.com/sinsinpub
// @version 1.2
// @description Sort history records of age.tv playbacks in specified order.
// @author sin_sin
// @match https://www.agedm.org/*
// @match https://www.agemys.org/*
// @grant none
// ==/UserScript==
@sinsinpub
sinsinpub / youtube_preferences.css
Last active April 21, 2025 02:10
Better youtube.co.jp
@-moz-document url-prefix("https://www.youtube.com") {
/* Hide annoying elements */
/* Share buttons? */
#top-level-buttons-computed > yt-button-view-model.ytd-menu-renderer,
/* Clip buttons? */
#flexible-item-buttons > ytd-button-renderer,
/* For $ buttons? */
#sponsor-button.ytd-video-owner-renderer:not(:empty),
#purchase-button.ytd-video-owner-renderer:not(:empty),
#analytics-button.ytd-video-owner-renderer:not(:empty),
@sinsinpub
sinsinpub / fixed_ines.md
Last active June 13, 2024 15:17
My memo for fixing NES header (iNES) questionable entries.

Incorrect header entries I noticed in either No-Intro or Good romset. Even nowadays, they are still not fixed by ROM files and some emulator's internal DB.

Issues are some glitches I met when I use old emulators or emulators with bad DB entries. Default region is always Japan here.

Fix header entries

@sinsinpub
sinsinpub / nekketsu_kakutoudensetsu.md
Last active August 8, 2022 08:20
Some cheatsheets and memo for NES Nekketsu Kakutou Densetsu.

熱血格闘伝説

いいサイト見つけました:http://pluto1930.html.xdomain.jp/nkakutou/index.html

一部のじょうほうをそのままコピペしました、てへぺろ

キャラクタエディットの仕組について

  • 名前の5文字、キャラクタのステータスが決まり、さらにステータス初期値によって格闘タイプが決まります。
@sinsinpub
sinsinpub / pwgen1943.lua
Created August 3, 2022 11:16
Lua password bulder for NES 1943: The Battle of Midway / FC 1943: The Battle of Valhalla
-- Continue password generator for `1943: The Battle of Valhalla` (Midway)
-- Input 6 arguments: stage[1,23] atk[1,6] def[1,6] energy[1,6] weapon[1,6] wtime[1,6]
-- Based on http://rapla.html.xdomain.jp/data/data4/1943fc/pas.html
stagebosses = {
[1] = "RIKAKU (Tone)", [2] = "KAKU (Kaga)",
[3] = "AYAKO (Mori)", [4] = "KAKUSI (Fuso)",
[5] = "KYOSHU (Akagi)", [6] = "GANRYO (T4HB Hiryu)",
[7] = "CHOKO (Ise)", [8] = "ROSHUKU (Hiryu)",
[9] = "AYAKO 2 (Composer)", [10] = "KAYU (Mutsu)",
[11] = "BUNSHU (Ki-67 Hiryu)", [12] = "CHOJIN (Yamashiro)",
@sinsinpub
sinsinpub / msxlist.c
Last active May 5, 2022 04:52
Print MSX-BASIC tokenized binary file to stdout in plain texts. Fixed messy indents, typos and bugs in original version. Tested with Turbo C++1/DJGPP GCC 7.3 and some BAS files of opensource Japanese homebrew games.
/****************************************************************************\
list v0.3
This programm will convert a MSX-BASIC tokenized file into an ascii file.
syntax: list [inputfile]
To save converted texts, just pipe output with '> outputfile'.
Vincent van Dam
([email protected])
@sinsinpub
sinsinpub / twitter-idb-snippet.js
Last active December 3, 2021 07:20
Try to dismiss twitter shitty notification of 'Push Notification' for 10 years. Run in devtools console for once, or load into devtools -> source -> snippets tab for future use.
var conn = indexedDB.open('localforage').onsuccess = (ev) => {
const db = ev.target.result;
const ts = db.transaction(['keyvaluepairs'], 'readwrite');
const os = ts.objectStore('keyvaluepairs');
const key = 'device:rweb.devicesbrowserPushpromptDismissed';
const req = os.get(key);
const printData = (e) => { console.info(e.target.result); };
req.onsuccess = (reqe) => {
printData(reqe);
const data = reqe.target.result;