Skip to content

Instantly share code, notes, and snippets.

@biuuu
biuuu / bilibili-wide-screen.user.js
Last active Mar 21, 2022
保持bilibili播放器宽屏模式
View bilibili-wide-screen.user.js
// ==UserScript==
// @name Bilibili宽屏模式On
// @namespace https://gist.github.com/biuuu/
// @match https://www.bilibili.com/*
// @grant none
// @version 1.3
// @author biuuu
// @run-at document-end
// @description 保持bilibili播放器宽屏模式
// ==/UserScript==
@biuuu
biuuu / data2CSV.js
Last active May 10, 2021
闪耀色彩剧情转CSV
View data2CSV.js
import CSV from 'papaparse'
const trim = (str) => {
if (!str) return ''
let _str = str.replace(/[\u0020]+$/g, '')
return _str.replace(/^[\u0020]+/g, '')
}
const replaceWrap = (text) => {
if (typeof text === 'string') {
@biuuu
biuuu / resize-shinycolors.js
Created Dec 29, 2020
把闪耀色彩的窗口缩放到合适的尺寸
View resize-shinycolors.js
function start (tw, th) {
const resizeCount = 10
const resize = () => {
let ih = window.outerHeight
let iw = window.outerWidth
const h = document.body.clientHeight
const w = document.body.clientWidth
const oh = th - h
const ow = tw - w
View gbf-raidcopy.user.js
// ==UserScript==
// @name 自动复制救援码
// @namespace https://gist.github.com/biuuu
// @version 0.4
// @description 自动复制最左边第一个救援码,调整顺序后刷新网页生效
// @author biuuu
// @include /^https?:\/\/gbf\.life.*$/
// @include /^https?:\/\/gbs\.eriri\.net.*$/
// @include /^https?:\/\/eriri\.net\/gbs.*$/
// @include /^https?:\/\/.+-raidfinder\.herokuapp\.com.*$/
@biuuu
biuuu / gbf-sticker.js
Last active Jul 24, 2019
给NGA论坛添加碧蓝幻想表情包
View gbf-sticker.js
// ==UserScript==
// @name NGA论坛碧蓝幻想表情包
// @namespace https://gist.github.com/biuuu
// @version 0.0.6
// @description 果てしない空の彼方 煌めく星たちの記憶
// @author 露莉亚
// @match *://bbs.ngacn.cc/post.php*
// @match *://ngabbs.com/post.php*
// @match *://nga.178.com/post.php*
// @match *://bbs.nga.cn/post.php*
@biuuu
biuuu / blhx.user.js
Last active Dec 29, 2021
一些小功能
View blhx.user.js
// ==UserScript==
// @name 碧蓝幻想小工具
// @namespace https://gist.github.com/biuuu
// @version 0.1.2
// @description
// @icon http://game.granbluefantasy.jp/favicon.ico
// @author biuuu
// @match *://game.granbluefantasy.jp/*
// @match *://gbf.game.mbga.jp/*
// @run-at document-body
@biuuu
biuuu / pageFullscreen.user.js
Last active Oct 10, 2018
anime1.me的窗口全屏用户脚本
View pageFullscreen.user.js
// ==UserScript==
// @name anime1.me网页全屏
// @namespace https://gist.github.com/biuuu/dcfdb0d561ea12f12d0912cada5ce121
// @version 0.1.1
// @description 123
// @icon https://anime1.me/favicon.ico
// @author biuuu
// @match https://anime1.me/*
// @run-at document-end
// @grant none
@biuuu
biuuu / parseResult.js
Last active Jan 18, 2018
网易云音乐海外IP搜索结果解码片段
View parseResult.js
var k5p = {}
function cuu5z() {
var AR5W = function(hW9N) {
if (hW9N < -128) {
return AR5W(128 - (-128 - hW9N))
} else if (hW9N >= -128 && hW9N <= 127) {
return hW9N
} else if (hW9N > 127) {
return AR5W(-129 + hW9N - 127)
View delta2html.js
import Delta from 'quill-delta'
import _escape from 'lodash/escape'
const blockKeys = [
'code-block', 'header', 'blockquote', 'align', 'list', 'direction', 'indent'
]
const blockValues = {
'code-block': {
isTag: true,
@biuuu
biuuu / cloudSettings
Last active May 19, 2018
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2018-05-09T08:33:24.334Z","extensionVersion":"v2.9.2"}