Features: - New modern dark UI with gradient accents - Hostname support for custom proxy (e.g. relayup.local) - Full private IP range bypass (10.x, 172.16-31.x, 192.168.x) - WebRTC Leak Protection setting - Kill Switch - block traffic if proxy disconnects - Auto-connect on browser startup - Custom proxy authentication (username/password) - Bypass list for custom exceptions - Local Network Access for printers, NAS, routers, etc - Multiple proxy sources with automatic fallback (Arweave → GitBros → GitHub) - Arweave as default proxy source for decentralized, permanent storage - Auto-update interval for proxy list
88 lines
2.0 KiB
JavaScript
88 lines
2.0 KiB
JavaScript
/* ANyONe Extension v2 - Configuration */
|
|
|
|
const CONFIG = {
|
|
// Version
|
|
VERSION: '2.0.0',
|
|
|
|
// Connection Modes
|
|
MODES: {
|
|
PUBLIC: 'public',
|
|
CUSTOM: 'custom'
|
|
},
|
|
|
|
// Default Settings
|
|
DEFAULTS: {
|
|
MODE: 'public',
|
|
PROXY_TIMEOUT: 5000,
|
|
AUTO_CONNECT: false,
|
|
WEBRTC_PROTECTION: false,
|
|
BYPASS_LOCAL: true,
|
|
PROXY_SOURCE: 'arweave',
|
|
UPDATE_INTERVAL: 0 // manual only
|
|
},
|
|
|
|
// Proxy Sources
|
|
PROXY_SOURCES: {
|
|
arweave: {
|
|
name: 'Arweave',
|
|
url: 'https://arweave.net/FjxfWIbSnZb7EaJWbeuWCsBBFWjTppfS3_KHxUP__B8',
|
|
icon: 'AR'
|
|
},
|
|
git: {
|
|
name: 'GitBros',
|
|
url: 'https://git.debros.io/DeBros/anyone-proxy-list/raw/branch/main/anonproxies.json',
|
|
icon: 'GIT'
|
|
},
|
|
github: {
|
|
name: 'GitHub',
|
|
url: 'https://raw.githubusercontent.com/DeBrosOfficial/anyone-proxy-list/refs/heads/main/anonproxies.json',
|
|
icon: 'GH'
|
|
}
|
|
},
|
|
|
|
// External URLs
|
|
URLS: {
|
|
CHECK_IP: 'https://check.en.anyone.tech/',
|
|
DOCS: 'https://docs.anyone.io/',
|
|
GITHUB: 'https://github.com/anyone-protocol',
|
|
WEBSITE: 'https://anyone.io/'
|
|
},
|
|
|
|
// Timeouts (ms)
|
|
TIMEOUTS: {
|
|
PROXY_CHECK: 5000,
|
|
FETCH: 10000
|
|
},
|
|
|
|
// Storage Keys
|
|
STORAGE_KEYS: {
|
|
MODE: 'connectionMode',
|
|
PROXY_ENABLED: 'proxyEnabled',
|
|
PROXY_LIST: 'proxyList',
|
|
PROXY_SOURCE: 'proxySource',
|
|
CURRENT_PROXY: 'currentProxy',
|
|
CUSTOM_IP: 'proxyIP',
|
|
CUSTOM_PORT: 'proxyPort',
|
|
CUSTOM_USERNAME: 'proxyUsername',
|
|
CUSTOM_PASSWORD: 'proxyPassword',
|
|
EXCEPTIONS: 'noProxyFor',
|
|
AUTO_CONNECT: 'autoConnect',
|
|
WEBRTC_PROTECTION: 'webrtcProtection',
|
|
KILL_SWITCH: 'killSwitch',
|
|
BYPASS_LOCAL: 'bypassLocal',
|
|
LAST_UPDATE: 'lastProxyUpdate'
|
|
}
|
|
};
|
|
|
|
// Freeze config to prevent modifications
|
|
Object.freeze(CONFIG);
|
|
Object.freeze(CONFIG.MODES);
|
|
Object.freeze(CONFIG.DEFAULTS);
|
|
Object.freeze(CONFIG.PROXY_SOURCES);
|
|
Object.freeze(CONFIG.URLS);
|
|
Object.freeze(CONFIG.TIMEOUTS);
|
|
Object.freeze(CONFIG.STORAGE_KEYS);
|
|
|
|
// ES Module export
|
|
export { CONFIG };
|