Skip to content

Instantly share code, notes, and snippets.

View x-magic's full-sized avatar
🙂
Smiling

Bill Haofei Gong x-magic

🙂
Smiling
View GitHub Profile
/* ==UserStyle==
@name CnBeta expand contents
@namespace www.cnbeta.com
@version 0.1.4
@description The title is load and clear!
@preprocessor default
@updateURL https://gist.githubusercontent.com/x-magic/d8402c964893a65a65e58501a050932d/raw/CnBetaExpandContents.user.css
==/UserStyle== */
/*
@x-magic
x-magic / vKVM.bat
Created February 13, 2019 03:01
To boot Avocent KVM/Virtual Media Java Applet directly from Windows batch script
@echo off
start .\jre1.7.0_80\bin\javaw ^
-cp avctKVM.jar ^
-Djava.library.path=.\lib ^
com.avocent.kvm.client.Main ^
ip={your IPMI ip} ^
platform=ast2050 ^
vmprivilege=true ^
user={IPMI username} ^
passwd={IPMI password} ^
@x-magic
x-magic / chnroute_telegram.conf
Last active July 1, 2019 08:50
Shadowrocket.conf with chnroute and Telegram IP only.
#Generated: 01 Jul 2019 16:42:52
[General]
bypass-system = true
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, localhost, *.local, e.crashlytics.com, captive.apple.com
bypass-tun = 10.0.0.0/8,100.64.0.0/10,127.0.0.0/8,169.254.0.0/16,172.16.0.0/12,192.0.0.0/24,192.0.2.0/24,192.88.99.0/24,192.168.0.0/16,198.18.0.0/15,198.51.100.0/24,203.0.113.0/24,224.0.0.0/4,255.255.255.255/32
dns-server = system, 114.114.114.114, 112.124.47.27, 8.8.8.8, 8.8.4.4
[Rule]
# From http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest
@x-magic
x-magic / NoMouseWheelZoom.user.js
Created May 13, 2018 07:34
This extension disables the annoying zoom shortcut Ctrl + Mousewheel.
// ==UserScript==
// @name NoMouseWheelZoom
// @namespace https://github.com/rashid301/NoMouseWheelZoom
// @version V2 without jQuery
// @description This extension disables the annoying zoom shortcut Ctrl + Mousewheel.
// @author Github@rashid301 (Original author, being ported from a Chrome extension)
// @include *://*/*
// @run-at document-start
// @updateURL https://gist.githubusercontent.com/x-magic/8cffe1ee7887ed02b25d70d6095c7056/raw/NoMouseWheelZoom.user.js
// @downloadURL https://gist.githubusercontent.com/x-magic/8cffe1ee7887ed02b25d70d6095c7056/raw/NoMouseWheelZoom.user.js
@x-magic
x-magic / WidenReadhubMe.user.js
Last active November 9, 2018 22:44
Make Readhub.me wider when sponsors are being removed by AdBlock
// ==UserScript==
// @name Widen Readhub.me
// @namespace https://readhub.me/
// @version 0.1.1.1
// @description Make Readhub.me wider when sponsors are being removed by AdBlock
// @author Some guy
// @run-at document-start
// @match https://readhub.me/*
// @match https://readhub.cn/*
// @updateURL https://gist.githubusercontent.com/x-magic/147628d7a2dbc1f21cbae7f30035502d/raw/WidenReadhubMe.user.js
#Apr 13, 2018, 2:36 PM GMT+8
#2e41c06b16d753d9dc0fb48e7fd3c70b2c8d07e9
[General]
bypass-system = true
#DNS设置或根据自己网络情况进行相应设置
dns-server = 1.1.1.1,1.0.0.1,119.29.29.29,8.8.8.8,8.8.4.4,208.67.222.222,208.67.220.220
skip-proxy = 127.0.0.1,192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,100.64.0.0/10,localhost,*.local,e.crashlytics.com,captive.apple.com,::ffff:0:0:0:0/1,::ffff:128:0:0:0/1
bypass-tun = 10.0.0.0/8,100.64.0.0/10,127.0.0.0/8,169.254.0.0/16,172.16.0.0/12,192.0.0.0/24,192.0.2.0/24,192.88.99.0/24,192.168.0.0/16,198.18.0.0/15,198.51.100.0/24,203.0.113.0/24,224.0.0.0/4,255.255.255.255/32
# Github: https://github.com/XinSSS/Conf-for-Surge-Shadowrocket
@x-magic
x-magic / CnBetaExpandContents.user.js
Last active April 19, 2019 00:13
The title is load and clear!
// ==UserScript==
// @name CnBeta expand contents
// @namespace http://www.cnbeta.com/
// @version 0.1.3
// @description The title is load and clear!
// @author Some random guy
// @match http*://*.cnbeta.com/*
// @run-at document-end
// @updateURL https://gist.githubusercontent.com/x-magic/460a28f582e7884f2ceab003bb596588/raw/CnBetaExpandContents.user.js
// @downloadURL https://gist.githubusercontent.com/x-magic/460a28f582e7884f2ceab003bb596588/raw/CnBetaExpandContents.user.js
@x-magic
x-magic / PoGDesignTVCalendarFooterMarginRemover.user.js
Last active January 21, 2018 12:49
The title is load and clear!
// ==UserScript==
// @name PoGDesign TV Calendar footer margin remover
// @namespace https://www.pogdesign.co.uk/cat/
// @version 0.1
// @description The title is load and clear!
// @author Some random guy
// @match https://www.pogdesign.co.uk/cat/*
// @updateURL https://gist.githubusercontent.com/x-magic/f9c8e5682c5fedcd03a0324c6c335fa6/raw/PoGDesignTVCalendarFooterMarginRemover.user.js
// @downloadURL https://gist.githubusercontent.com/x-magic/f9c8e5682c5fedcd03a0324c6c335fa6/raw/PoGDesignTVCalendarFooterMarginRemover.user.js
// ==/UserScript==
@x-magic
x-magic / ZeldaDungeonBreathoftheWildInteractiveMapTweaks.user.js
Last active November 22, 2018 17:06
Various hacks for Zelda Dungeon BotW map
// ==UserScript==
// @name Zelda Dungeon Breath of the Wild Interactive Map Tweaks
// @namespace http://www.zeldadungeon.net
// @version 0.1.1
// @description Various hacks for Zelda Dungeon BotW map. I'm just too lazy to write a full description.
// @include http*://www.zeldadungeon.net/breath-of-the-wild-interactive-map/*
// @run-at document-end
// @copyright Nope, this contains original code from the website. It's whether piracy or public domain. Sorry Zelda Dungeon. I love you guys!
// @updateURL https://gist.githubusercontent.com/x-magic/6c2d36d88b0f6fcc54b0615ab3700e53/raw/ZeldaDungeonBreathoftheWildInteractiveMapTweaks.user.js
// @downloadURL https://gist.githubusercontent.com/x-magic/6c2d36d88b0f6fcc54b0615ab3700e53/raw/ZeldaDungeonBreathoftheWildInteractiveMapTweaks.user.js
@x-magic
x-magic / MaharaDiaryEntryCompanion.user.js
Last active October 16, 2017 01:42
Change 9-column layout of diary entry page to fullwidth, then boost up the font size
// ==UserScript==
// @name Mahara Diary Entry Companion
// @namespace https://mahara.infotech.monash.edu.au/
// @version 0.1
// @description Change 9-column layout of diary entry page to fullwidth, then boost up the font size
// @include https://mahara.infotech.monash.edu.au/mahara/artefact/artefact.php?artefact=*
// @run-at document-end
// @copyright 2017, Bill Gong <[email protected]>
// @updateURL https://gist.githubusercontent.com/x-magic/fad0a41f430783af6c898181081233c4/raw/MaharaDiaryEntryCompanion.user.js
// @downloadURL https://gist.githubusercontent.com/x-magic/fad0a41f430783af6c898181081233c4/raw/MaharaDiaryEntryCompanion.user.js