Skip to content

Instantly share code, notes, and snippets.

View Dianliang233's full-sized avatar
🏠
Working from home

Dianliang233 Dianliang233

🏠
Working from home
View GitHub Profile
@Dianliang233
Dianliang233 / fuk_you_mcbbs_ad.user.js
Last active January 17, 2022 10:21
fuk_you_mcbbs_ad.user.js
// ==UserScript==
// @name Fuck you MCBBS ADs
// @namespace https://example.com/nomcbbsads
// @version 1.0
// @description remove top bar ads on mcbbs.net
// @author Dianliang233
// @updateURL https://gist.github.com/Dianliang233/6ef2be3fa1846d66ee31e27b10d94289/raw/09146ec2d8d74aca660d4571f0350beddf8ead0e/fuk_you_mcbbs_ad.user.js
// @match https://www.mcbbs.net/*
// @grant none
// ==/UserScript==
@Dianliang233
Dianliang233 / nginx.conf
Last active July 27, 2022 11:39
小可 · Wiki nginx pseudo-static config
# Location for wiki's entry points
location ~ ^/(index|load|api|thumb|opensearch_desc|rest|img_auth)\.php$ {
include enable-php-81.conf;
}
# Cache for load.php
location ~ ^load\.php$ {
add_header Cache-Control "public";
expires 7d;
}
@Dianliang233
Dianliang233 / fuk-you-tenecnt.user.js
Last active July 6, 2021 15:00
F**K YOU TENECNT
// ==UserScript==
// @name F**K YOU TENECNT
// @description Directly redirect to the destination of links opened in QQ instead of Ctrl-C/V it to location bar
// @namespace https://example.com/Dianliang233/tencent/
// @version 0.2
// @author Not Dianliang233
// @match https://c.pc.qq.com/middlem.html*
// @updateURL https://gist.github.com/Dianliang233/15efd4175dca3a412811a4a60e115815/raw/a5b126b9689503aa7c07911930db24bf3b47e7b9/fuk-you-tenecnt.user.js
// @grant none
// @run-at document-start
@Dianliang233
Dianliang233 / fandom-glasses.user.js
Last active August 12, 2022 02:55
A Pair of Glasses for Fandom
// ==UserScript==
// @name:en A Pair of Glasses for Fandom
// @name:zh 给Fandom的一双眼镜
// @description:en Kill Fandom's crappy lossy compression
// @description:zh Wiki真的清晰了啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊
// @namespace https://example.com/Dianliang233/clearwiki/
// @version 0.1
// @author Dianliang233
// @match https://*.fandom.com/*
// @updateURL https://gist.github.com/Dianliang233/1a29fb06fd2ce1b98456e64644cf6537/raw/679da9bad339ecfa5e5e256299682a702e8afa57/fandom-glasses.user.js
@Dianliang233
Dianliang233 / minecraft_net_scroll.user.js
Last active July 14, 2021 14:24
I WANNA SCROLL ON MINECRAFT.NET
// ==UserScript==
// @name: I WANNA SCROLL ON MINECRAFT.NET
// @namespace https://example.com/minecraftnetscroll
// @version 1.0.1
// @description:en fix WEB-1933
// @author Dianliang233
// @updateURL https://gist.github.com/Dianliang233/635394e5c97392f75fc109e55acf8bd0/raw/62a95098f92559d241b74a78f663df72f5cb08be/minecraft_net_scroll.user.js
// @match https://www.minecraft.net/*
// @grant none
// ==/UserScript==
@Dianliang233
Dianliang233 / mcw.ass
Last active January 17, 2021 14:41
中文 Minecraft Wiki 字幕样式
[Script Info]
; 中文 Minecraft Wiki 字幕样式 - v1.1
; https://gist.github.com/Dianliang233/f1e1749ca888d7d7ac90fa056ab323b5
; 部分参考:https://github.com/Kilo19/NixieVideoKit/blob/master/%E8%BE%89%E5%85%89%E6%A0%B7%E5%BC%8F.ass
Title: Minecraft Wiki Style
ScriptType: v4.00+
WrapStyle: 0
ScaledBorderAndShadow: yes
YCbCr Matrix: TV.601
PlayResX: 1280
@Dianliang233
Dianliang233 / sample_bilibili_miniapp.json
Last active November 8, 2024 01:44
QQ App Message Samples
{
"app": "com.tencent.miniapp_01",
"config": {
"autoSize": 0,
"ctime": 1606548327,
"forward": 1,
"height": 0,
"token": "5249d02fda3f71f76fcd2bd3012b182c",
"type": "normal",
"width": 0
@Dianliang233
Dianliang233 / sort.js
Last active July 4, 2021 10:53
Minecraft bug sorter by @ _LittleC_
# by _LittleC_
const fs = require('fs')
const _ = require('lodash')
let list = _.chunk(fs.readFileSync("1.txt").toString().split("\r\n"), 2)
let result = list.map(v => {
return {
id: ~~(v[0].match(/MC-(\d*)/)[1]),
data: v
}