Skip to content

Instantly share code, notes, and snippets.

View sinsinpub's full-sized avatar

sin_sin sinsinpub

  • Free
View GitHub Profile
@sinsinpub
sinsinpub / twitter_preferences.css
Last active April 10, 2024 09:26
My twitter CSS preferences for small(?) monitor <= 1366
@-moz-document domain("twitter.com") {
/** Smaller left banner and sidebarColumn, larger primaryColumn */
.r-1ye8kvj {
max-width: 720px;
}
.r-1hycxz {
width: 240px;
}
/** To maximize primaryColumn up to full screen width: */
@media (min-width: 1298px) {
@sinsinpub
sinsinpub / github_preferences.css
Last active April 4, 2024 04:32
My github.com CSS style preferences
@-moz-document domain("github.com"), domain("gist.github.com") {
/* Better Japanese font family */
body,
.markdown-body,
.ffgjwS {
font-family: "Segoe UI", Helvetica, Meiryo, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}
.blob-code-inner,
.diff-text-inner,
.react-code-text,
@sinsinpub
sinsinpub / fixed_ines.md
Last active February 5, 2024 09:37
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 / 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 / dmm_netgame_tamper.user.js
Last active October 24, 2023 05:45
Prevent DMM netgame annoying reload confirm for now
// ==UserScript==
// @name DMM netgame tamper
// @author sin_sin
// @namespace https://gist.github.com/sinsinpub
// @version 0.5
// @description Prevent DMM netgame reload alert when security token check failed.
// @copyright 2016-2023, sin_sin
// @match http://www.dmm.com/netgame/
// @include http://www.dmm.com/netgame/social/-/gadgets/=/app_id=*
// @include https://www.dmm.co.jp/netgame/social/-/gadgets/=/app_id=*
@sinsinpub
sinsinpub / youtube_preferences.css
Last active September 18, 2023 12:36
Better youtube.co.jp
@-moz-document url-prefix("https://www.youtube.com") {
/* Hide annoying elements */
/* Share buttons? */
#top-level-buttons-computed > ytd-button-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 / pixiv_preferences.css
Last active July 22, 2023 06:28
My pixiv.net CSS preferences
@-moz-document domain("www.pixiv.net") {
/* Hide annoying elements */
.premium-header-banner,
._premium-lead-tag-search-bar,
._premium-lead-promotion-banner,
.popular-introduction-overlay,
._member-illust-medium-fanbox-area,
.bookmark-ranges,
._unit aside,
.ads_anchor,
@sinsinpub
sinsinpub / shiren_ds1_jpn_nds.md
Last active February 8, 2023 06:50
Some old memo on Fuurai no Shiren (風来のシレン) series. Updated for plain text -> markdown.

0767 Fuurai no Shiren DS (J) (NTR-AFUJ-JPN)

Item modifications in Work RAM

  • 1st item:
$021B6F80 byte?: item states, 8th bit = equipped flag
       +2 word : item type id, see item_plant.bin below
       +4 dword: item flags of enhancements
       +6 byte?: item count/enhancement level
@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)",