Skip to content

Instantly share code, notes, and snippets.

View sinsinpub's full-sized avatar

sin_sin sinsinpub

  • Free
View GitHub Profile
@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 / wikiwiki_PrintQuotesJson.user.js
Last active March 4, 2022 14:43
From KanColle wikiwiki, extract and print Kanmusu quotes JSON at console for KC3Kai.
// ==UserScript==
// @name KanColle wikiwiki subtitles crawler
// @author sin_sin
// @namespace https://gist.github.com/sinsinpub
// @version 0.7
// @description Extract and print Kanmusu quotes JSON at devtools console for KC3Kai.
// @copyright 2017-2021, sin_sin
// @match https://wikiwiki.jp/kancolle/
// @include https://wikiwiki.jp/kancolle/*
// @icon https://cdn.wikiwiki.jp/to/w/common/user-favicon.ico
@sinsinpub
sinsinpub / Renda-kun.ahk
Last active June 18, 2019 03:15
AHK Script: LMB Renda-kun (for FKG battle auto Go!)
; LMB Renda-kun for FLOWER KNIGHT GIRL
; @version 1.2
; @author sin_sin
#NoTrayIcon
DefaultWinTitle := "FLOWER KNIGHT GIRL"
Gui, New, hwndhGui AlwaysOnTop ToolWindow -Resize -MaximizeBox
Gui, Add, Edit, w151 r1 vTargetWinTitle
@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 / 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 / twitter_preferences.css
Last active May 19, 2024 06:22
My twitter CSS preferences for small(?) monitor <= 1366
@-moz-document domain("twitter.com"), domain("x.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 / MapPc98JpKeyboard.ahk
Created May 4, 2019 10:55
AHK Script: Map PC-98 Japanese Keyboard layout to English
;ダイヤテック FKBN104MRL/EFB2(Majestouch NINJA フルサイズ US配列) PS/2接続
;+ Windows 8 にて動作確認。XPではキーマップが異なるのか、そのまま流用して使うことはできない。
#UseHook
#InstallKeybdHook
#MaxHotkeysPerInterval 200
;RemapGraphKey
;1=グラフ文字キー入れ替え有効
;0=グラフ文字キー入れ替え無効
RemapGraphKey=1
;設定対象プロセスの指定
@sinsinpub
sinsinpub / MapMsxJpKeyboard.ahk
Created May 4, 2019 10:56
AHK Script: Map MSX Japanese Keyboard layout to English
;+ Windows 8 にて動作確認。XPではキーマップが異なるのか、そのまま流用して使うことはできない。
#UseHook
#InstallKeybdHook
#MaxHotkeysPerInterval 200
;設定対象プロセスの指定
GroupAdd, MSXJPKEYLAPP, ahk_exe fmsx.exe
;キー割り当て重視型
#IFWinActive ahk_group MSXJPKEYLAPP
@sinsinpub
sinsinpub / MapFamilyJpKeyboard.ahk
Created May 4, 2019 10:57
AHK Script: Map Family BASIC Japanese Keyboard layout to English
;+ Windows 8 にて動作確認。XPではキーマップが異なるのか、そのまま流用して使うことはできない。
#UseHook
#InstallKeybdHook
#MaxHotkeysPerInterval 200
;設定対象プロセスの指定
GroupAdd, FBJPKEYLAPP, ahk_exe nestopia.exe
GroupAdd, FBJPKEYLAPP, ahk_exe virtuanes.exe
;キー割り当て重視型
#IFWinActive ahk_group FBJPKEYLAPP
@sinsinpub
sinsinpub / dmm_netgame_tamper.css
Last active April 22, 2022 04:40
DMM netgame styles preferences.
@-moz-document url-prefix("http://www.dmm.co.jp/netgame/social/-/gadgets"), domain("osapi.dmm.com"), domain("pc-play.games.dmm.com"), domain("pc-play.games.dmm.co.jp") {
/* To hide navi ads */
#dmm-ntgnavi-renew,
#ntg-recommend,
.dmm-ntgnavi,
.dmm-ntgnavi-left {
display: none !important;
}
/* To fix messed up DMM styles */
body,