Thanks to visit codestin.com
Credit goes to gist.github.com

Skip to content

Instantly share code, notes, and snippets.

View ircfspace's full-sized avatar
🇮🇷
زن، زندگی، آزادی

IRCF ircfspace

🇮🇷
زن، زندگی، آزادی
View GitHub Profile
@ircfspace
ircfspace / worker.js
Created September 18, 2025 08:05
Simple GitHub Raw Proxy Worker
export default {
async fetch(request) {
const url = new URL(request.url);
const path = url.pathname.replace(/^\/+/, "");
const parts = path.split("/");
if (parts.length < 4) {
return new Response("Usage: /owner/repo/branch/path/to/file.ext", { status: 400 });
}
const [owner, repo, branch, ...filePathParts] = parts;
const filePath = filePathParts.join("/");
[
{
"remarks": "aleskxyz",
"dns": {
"queryStrategy": "UseIPv4",
"hosts": {
"geosite:google": "www.google.com"
},
"servers": [
"194.225.62.80"
ss://Y2hhY2hhMjAtaWV0Zi1wb2x5MTMwNTo1MXlsb1FDOEQ5dzFXYWU3Rkh0STY1@azure-sto.edgeservers.org:48172/?POST%20#Ainita2
ss://Y2hhY2hhMjAtaWV0Zi1wb2x5MTMwNTo1MXlsb1FDOEQ5dzFXYWU3Rkh0STY1@azure-sto.edgeservers.org:48172/?POST%20#Ainita3
92.243.74.0/24
185.148.106.0/24
77.232.142.0/24
194.76.18.0/24
31.43.179.0/24
194.59.5.0/24
45.80.111.0/24
45.135.235.0/24
38.180.154.0/24
13.36.140.0/24
{
"inbounds": [{
"port": "PORTPORT",
"listen": "127.0.0.1",
"tag": "socks-inbound",
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": false,
"ip": "127.0.0.1"
var FindProxyForURL = function(init, profiles) {
return function(url, host) {
"use strict";
var result = init, scheme = url.substr(0, url.indexOf(":"));
do {
result = profiles[result];
if (typeof result === "function") result = result(url, host, scheme);
} while (typeof result !== "string" || result.charCodeAt(0) === 43);
return result;
};
var FindProxyForURL = function(init, profiles) {
return function(url, host) {
"use strict";
var result = init, scheme = url.substr(0, url.indexOf(":"));
do {
result = profiles[result];
if (typeof result === "function") result = result(url, host, scheme);
} while (typeof result !== "string" || result.charCodeAt(0) === 43);
return result;
};
{
"dns" : {
"disableCache" : true,
"disableFallback" : false,
"disableFallbackIfMatch" : false,
"queryStrategy" : "UseIP",
"servers" : [
{
"address" : "8.8.8.8",
"skipFallback" : false