This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
addEventListener('fetch', (event) => { | |
const url = new URL(event.request.url); | |
thisProxyServerUrlHttps = `${url.protocol}//${url.hostname}/`; | |
thisProxyServerUrl_hostOnly = url.host; | |
//console.log(thisProxyServerUrlHttps); | |
//console.log(thisProxyServerUrl_hostOnly); | |
event.respondWith(handleRequest(event.request)); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Cloudflare Workers Raw content fetcher | |
* Usage: https://${yourWorkerRoute}/?https://developer.mozilla.org | |
*/ | |
addEventListener("fetch", (event) => { | |
const res = handleRequest(event.request) | |
.catch((err) => new Response(err.stack, { status: 500 })) | |
event.respondWith(res); | |
}); | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! 2019/2/2 https://start.duckduckgo.com | |
start.duckduckgo.com##.header__label.showcase.header--aside__item | |
start.duckduckgo.com##.tag-home__item | |
! 2019/2/2 https://www.bilibili.com | |
www.bilibili.com###fixed_app_download | |
! 2019/2/4 http://ask.zol.com.cn | |
ask.zol.com.cn###\#J_recommend_cover | |
ask.zol.com.cn###\#J_recommend_cover |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const net = require('net') | |
net.createServer(client => { | |
client.once('data', data => { | |
client.write(Buffer.from([5, 0])); | |
client.once('data', data => { | |
data = [...data]; | |
let ver = data.shift(); | |
let cmd = data.shift(); //1: connect, 2: bind, 3: udp | |
let rsv = data.shift(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user www-data; | |
http { | |
## | |
# Basic Settings | |
## | |
sendfile on; | |
tcp_nopush on; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import glob | |
import json | |
import sys | |
import shutil | |
import os | |
# this might change, not sure, but probably not since 16 is a great number | |
HEADER_LENGTH = 16 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name 【全网视频VIP解析】改 | |
// @version 1.0.0 | |
// @description 更改自脚本(ID:424086)v2.5,作者小艾特,遵循原作者GPL协议,仅用于学习. | |
// @author 小艾特, modified by symant233 | |
// @icon https://cdn.jsdelivr.net/gh/symant233/PublicTools/Beautify/Bkela.png | |
// @namespace https://greasyfork.org/zh-CN/scripts/424086 | |
// @require https://cdn.staticfile.org/jquery/3.4.1/jquery.min.js | |
// @match *://v.qq.com/x/cover/* | |
// @match *://v.qq.com/x/page/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Author: symant233 | |
# Description: A script for Tachiyomi, making folders for single zip files | |
# in `/Tachiyomi/local` folder. Put this script in `/Tachiyomi` folder. | |
find ./local -mindepth 1 -maxdepth 1 -type f | while read dir | |
do | |
( | |
file="$(basename -- "$dir")" | |
extension="${file##*.}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
# py2 origin author lrdcq | |
# usage python3 unwxapkg.py filename | |
__author__ = 'Integ: https://github.com./integ' | |
import sys, os | |
import struct | |
class WxapkgFile(object): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Notion Full-Width Pages in Narrow Viewport Edited | |
// @namespace Notion Custom Scripts | |
// @match *://www.notion.so/* | |
// @grant GM_addStyle | |
// @version 1.4 | |
// @author Jacob Zimmerman (jczimm) <jczimm@jczimm.com> modified by symant233 | |
// @description Allows pages to fill the viewport width when the viewport is narrow. | |
// ==/UserScript== |
NewerOlder