Skip to content

Instantly share code, notes, and snippets.

View Dobby233Liu's full-sized avatar
😵‍💫
My computer doesn't boot

Liu Wenyuan Dobby233Liu

😵‍💫
My computer doesn't boot
View GitHub Profile
@Dobby233Liu
Dobby233Liu / inst_map.json
Last active October 25, 2026 10:50
"Marine Benefit MIDI project" stem merger
{
"Bluegrass Banjo": [
106,
0,
0
],
"Bondi Breath": [
53,
0,
0
@Dobby233Liu
Dobby233Liu / ev2csv.py
Last active August 31, 2026 15:01
ev2csv: Exports and slugifies text from RPG Maker MV map data for localization purposes
# Copyright (c) 2026 Liu Wenyuan
#
# BSD Zero Clause License
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
@Dobby233Liu
Dobby233Liu / cntts.md
Last active October 18, 2026 07:40
一些在境内提供服务的云端TTS服务
function linearClamp(x) {
return Math.min(Math.max(x, 0), 1);
}
function linearPanToDominoPan(x) {
return Math.round(linearClamp(x) * 126) - 63;
}
function linearVolToDominoVol(x) {
return Math.round(linearClamp(x) * 127);
}
@Dobby233Liu
Dobby233Liu / fixlater.py
Last active April 3, 2026 21:16
SoonerXTR if it was good and honest + FixLater
# FixLater: Reconstructs YAFFS1 spare/oob data for image files that don't have it
# Copyright (C) 2026 Liu Wenyuan
# Derived from code in YAFFS; copyright (C) 2002-2018 Aleph One Ltd.
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License version 2 as published by the Free
# Software Foundation.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
@Dobby233Liu
Dobby233Liu / livegetroomundercursorurl.user.js
Last active February 7, 2026 14:02
Get hovered liveroom ids: These guys can't use <a> like normal people
// ==UserScript==
// @name Get hovered liveroom ids
// @namespace io.github.dobby233liu.userscripts.bilibili.livegetroomundercursorurl
// @version 1.1.1
// @description These guys can't use <a> like normal people
// @author Liu Wenyuan
// @match https://live.bilibili.com/*
// @grant GM_registerMenuCommand
// ==/UserScript==
@Dobby233Liu
Dobby233Liu / Show liveroom category in space.user.js
Last active May 24, 2026 12:13
Show liveroom category and play count: Adds a badge to show the category and play count in liveroom cards
// ==UserScript==
// @name Show liveroom category and play count
// @namespace io.github.dobby233liu.userscripts.bilibili.liveshowroomarea
// @version 1.1.7d
// @description Adds a badge to show the category and play count in liveroom cards
// @author Liu Wenyuan
// @match https://*.bilibili.com/*
// @exclude *://message.bilibili.com/pages/nav/header_sync*
// @exclude *://message.bilibili.com/pages/nav/index_new_pc_sync*
// @exclude *://s1.hdslb.com/bfs/seed/jinkela/short/cols/*
/* ==UserStyle==
@name De-"Modernize" Install Button
@namespace https://dobby233liu.neocities.org
@version v1.0.0
@description Remove border radius which clashes with the style of everything else
@author Liu Wenyuan
==/UserStyle== */
@-moz-document domain("greasyfork.org") {
.install-link, .install-link:visited, .install-link:active, .install-link:hover,
import datetime
def validate_build_id(build_id):
return build_id.isupper() \
and len(build_id) in (5, 6) \
and build_id[0].isalpha() \
and build_id[3:4+1].isdigit() \
and (not len(build_id) == 6 or build_id[5].isalpha())
# only ones that used this build ID format
// ==UserScript==
// @name Card full title
// @namespace https://dobby233liu.neocities.org
// @version v1.0.4
// @description Present full card title on hover
// @author Liu Wenyuan
// @match https://*.bilibili.com/*
// @exclude *://message.bilibili.com/pages/nav/header_sync*
// @exclude *://message.bilibili.com/pages/nav/index_new_pc_sync*
// @exclude *://s1.hdslb.com/bfs/seed/jinkela/short/cols/*