注意:控制台不算Demo入口
生成式
| { | |
| "Bluegrass Banjo": [ | |
| 106, | |
| 0, | |
| 0 | |
| ], | |
| "Bondi Breath": [ | |
| 53, | |
| 0, | |
| 0 |
| # 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 |
注意:控制台不算Demo入口
生成式
| 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); | |
| } |
| # 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 |
| // ==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== |
| // ==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/* |
| 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/* |