Skip to content

Instantly share code, notes, and snippets.

View Dobby233Liu's full-sized avatar
😵‍💫

Liu Wenyuan Dobby233Liu

😵‍💫
View GitHub Profile
@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 February 6, 2026 09:26
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.7c
// @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.3b
// @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/*
@Dobby233Liu
Dobby233Liu / Froyocomb Helper.user.js
Last active January 18, 2026 09:45
[!! MOVED to https://github.com/froyocomb/tools !!] Froyocomb Helper: Tool for speeding up the process of finding commits from before a specific date (i.e. included with a specific build). Developed for Froyocomb, the Android pre-release source reconstruction project.
// ==UserScript==
// @name Froyocomb Helper
// @namespace https://dobby233liu.neocities.org
// @version v1.1.11d
// @description [!! MOVED to https://github.com/froyocomb/tools !!] Tool for speeding up the process of finding commits from before a specific date (i.e. included with a specific build). Developed for Froyocomb, the Android pre-release source reconstruction project.
// @author Liu Wenyuan & Froyocomb Team
// @match https://android.googlesource.com/*
// @match https://chromium.googlesource.com/*
// @grant GM_addStyle
// @grant GM_getValue
import mido
import sys
import math
def clean_pitch_bend(input_path, output_path):
mid = mido.MidiFile(input_path)
# should make sure each track only manipulate one channel first
# (if BENDY is used please color all relevant notes to color 1)
# if a track manipulates multiple channels
@Dobby233Liu
Dobby233Liu / annonate-emoicons.user.js
Last active February 7, 2026 14:45
Annonate Emoticons: Adds emoticon and decoration card name hover hints to bilibili
// ==UserScript==
// @name Annonate Emoticons
// @namespace https://dobby233liu.github.io
// @version v1.3.13c
// @description Adds emoticon and decoration card name hover hints to bilibili
// @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 insights-ui.soundcloud.com
@namespace github.com/openstyles/stylus
@version 1.0.0
@description A new userstyle
@author Me
==/UserStyle== */
@-moz-document domain("insights-ui.soundcloud.com") {
.DataList_ListItem__aVXcC.DataList_Blur__rlRSs,
// ==UserScript==
// @name 跳转到opus/t页面
// @namespace https://dobby233liu.github.io
// @version v1.0.1b
// @description 更换动态页界面类型
// @author Liu "Dobby233Liu" Wenyuan
// @match https://t.bilibili.com/*
// @match https://www.bilibili.com/opus/*
// @exclude *://message.bilibili.com/pages/nav/header_sync*
// @exclude *://message.bilibili.com/pages/nav/index_new_pc_sync*