Skip to content

Instantly share code, notes, and snippets.

@knowlet
knowlet / c4story.user.js
Created June 12, 2019 07:23
就是不想看 VAST.
// ==UserScript==
// @name 研伝說動漫看看
// @namespace https://knowlet.me
// @version 0.1
// @description try to take over the world!
// @author knowlet
// @match https://www.c4story.com/*
// @run-at document-end
// @grant none
// ==/UserScript==
@knowlet
knowlet / apmib.c
Created June 11, 2019 06:29
Fake Realtek apmib library.
// mips-linux-gnu-gcc -Wall -fPIC -shared apmib.c -o apmib-ld.so
#include<stdio.h>
#include<stdlib.h>
#define MIB_IP_ADDR 170
#define MIB_HW_VER 0x250
#define MIB_CAPTCHA 0x2C1
int apmib_init(void) {
// Fake it!
return 1;
@knowlet
knowlet / dmeden.user.js
Created June 11, 2019 06:28
動漫伊甸看看
// ==UserScript==
// @name 動漫伊甸看看
// @namespace https://knwolet.me
// @version 0.1
// @description try to take over the world!
// @author knowlet
// @match http://dmeden.net/comichtml/*/1.html*
// @grant none
// ==/UserScript==
// ==UserScript==
// @name AD News
// @namespace https://knowlet.me
// @version 0.1
// @description try to eat some apple!
// @author knowlet
// @match https://*.appledaily.com/*
// @grant none
// @run-at document-start
// ==/UserScript==
@knowlet
knowlet / KissComic.user.js
Last active May 18, 2018 20:06
Expand 930mh comic pic.
// ==UserScript==
// @name KissComic
// @namespace https://knowlet.me/
// @version 0.2
// @description try to take over the world!
// @author knowlet
// @match http://www.930mh.com/manhua/*
// @grant none
// ==/UserScript==
@knowlet
knowlet / 啪啪啪研習所無限看2.1.user.js
Last active March 16, 2025 15:16
啪啪啪研習所無限看2.1
// ==UserScript==
// @name 啪啪啪研習所無限看2.1
// @namespace https://knowlet.me/
// @version 0.2
// @description 繞過前端付費會員驗證
// @author knowlet
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.18.2/babel.js
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.16.0/polyfill.js
// @match https://jav101.com/play/*
// ==/UserScript==
@knowlet
knowlet / FJU NISRA - Bash Intro
Created October 19, 2016 08:40 — forked from denny0223/FJU NISRA - Bash Intro
FJU NISRA - Bash Intro
--withborder
--center FJU NISRA
--center Bash Intro
--author Denny Huang
--date today
@knowlet
knowlet / ttuGPA.js
Last active February 6, 2017 15:47
Calc TTU student's GPA.
// https://stucis.ttu.edu.tw/academic/ascoresbj.php
var regex = /^(\u62B5|\(?-?[0-9]{1,3}\)?)$/
var totalPoints = 0;
var totalCredit = 0;
var nums = [].slice.call(document.querySelectorAll('td'))
.filter(function(e){ return regex.test(e.textContent); })
.map(function(num, idx ,arr){
var b = Number(num.innerHTML);
if (idx % 2 === 1) {
var a = Number(arr[idx-1].innerHTML);
@knowlet
knowlet / vhost.conf
Created February 25, 2016 17:18
Easy config file to use folder as subdomain, just put it in /etc/nginx/conf.d/
server {
listen 80;
root /var/www/html/$subdomain;
index index.php index.html index.htm;
server_name ~^(?<subdomain>.+).knowlet.me$;
location / {
try_files $uri $uri/ =404;
@knowlet
knowlet / plurk.css
Last active February 18, 2016 16:13
My Plurk custom CSS
/* 河道上的噗 */
.plurk_cnt {
/* 設定噗跟預設一樣大小的圓角 */
border-radius: 0 0 10px 10px;
/* 調整成跟展開一樣寬 */
min-width: 380px;
}
.response_time.plurk_cnt {
/* 110 + 10 + 2 */
min-width: 122px;