Skip to content

Instantly share code, notes, and snippets.

View Fndroid's full-sized avatar
🌴
On vacation

Fndroid Fndroid

🌴
On vacation
View GitHub Profile
Privacy Policy
Effective Date: April 6, 2025
We respect your privacy and are committed to protecting it. This Privacy Policy is intended to inform you that our Chrome extension does not collect, store, or transmit any personal data or personally identifiable information.​
Information Collection and Use
Our Chrome extension operates entirely on your local device and does not gather any personal information from you. We do not collect data such as your name, email address, browsing history, or any other personal details.​
GitHub
# 配置文件预处理
## 版本要求
0.10.1 版本更新后,支持使用 JavaScript 对下载后的配置文件进行预处理
0.11.10 版本更新后,支持使用 YAML 对下载后配置文件进行简单预处理
## 简便方法(YAML)
@Fndroid
Fndroid / parser.js
Last active December 2, 2022 05:34
module.exports.parse = async (raw, { axios, yaml, notify, console }, { name, url, interval, selected }) => {
return `# parsed by remote parser\n\n${raw}`
}
@Fndroid
Fndroid / index.html
Created April 12, 2022 09:32
electron spawn cwd ignored issue on m1 mac
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<meta
http-equiv="Content-Security-Policy"
content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'"
/>
<title>Hello World!</title>
@Fndroid
Fndroid / linux.sh
Last active November 28, 2021 02:53
cfw tun installer
#!/bin/bash
COMMAND="$1"
CFW_PATH="$2"
USER_HOME=$(getent passwd $SUDO_USER | cut -d: -f6)
SOURCE="$2/resources/static/files/linux/x64/service"
DEST="$USER_HOME/.config/clash"
INSTALLER_PATH="$CFW_PATH/resources/static/files/linux/common/service-installer"
PLIST_PATH="$INSTALLER_PATH/scripts/clash-core-service.service"
@Fndroid
Fndroid / index.html
Created September 12, 2021 23:38
electron 14 breaks unresiable frameless window
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Hello World!</title>
<meta
http-equiv="Content-Security-Policy"
content="script-src 'self' 'unsafe-inline';"
/>
</head>
@Fndroid
Fndroid / index.js
Created December 3, 2020 08:15
js-obfs-issue
function hi() {
return function () {
if (/https?:\/\/(.+?)\//.test("http://127.0.0.1:54637/config")) {
console.log(RegExp.$1);
} else {
console.log("no match");
}
};
}
hi()();
vmess-proxy1= vmess, example.com, 443, username = 12345678-abcd-1234-1234-47ffca0ce229, ws=true, tls=true, ws-path=/v2, ws-headers=X-Header-1:value|X-Header-2:value
vmess-proxy2= vmess, example.com, 443, username = 12345678-abcd-1234-1234-47ffca0ce229, ws=true, tls=true, ws-path=/v2, ws-headers=X-Header-1:value|X-Header-2:value
@Fndroid
Fndroid / quanx.js
Last active November 22, 2019 09:41
if ($response.statusCode != 200) {
$done(Null);
}
// test
const body = $response.body;
const bodyJson = JSON.parse(body)
// var body = $response.body;
// console.log(body.slice(0, 20))
let body = JSON.stringify({})
// var obj = JSON.parse(body);
// obj['data'] = obj['data'].filter(c => c['type'] === 'common_card')
// body = JSON.stringify(obj);
11122