Skip to content

Instantly share code, notes, and snippets.

@knowlet
knowlet / fans17.user.js
Created May 12, 2023 20:08
爆漿公社...
// ==UserScript==
// @name 無限爆漿
// @namespace https://knowlet.me
// @version 0.1
// @description try to take over the world!
// @author knowlet
// @match https://www.fans17.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=www.fans17.com
// @grant none
// ==/UserScript==
@knowlet
knowlet / freegp.user.js
Created May 25, 2022 14:57
Garage Play 無限試看
// ==UserScript==
// @name Free GP+
// @namespace knowlet.me
// @version 0.1
// @description unlimited gp+ video preview.
// @author You
// @match https://garageplay.tw/vod/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=garageplay.tw
// @grant unsafeWindow
// @run-at document-end
@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 / 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;