Advanced proxy redirection with intelligent instance selection, automatic scraping, shortlink bypassing and full configuration.
Auto-PROXY-SF is a privacy-focused userscript that automatically redirects mainstream surveillance platforms to privacy-respecting proxy frontends. The tool employs intelligent health monitoring, latency-based instance selection, and supports both clearnet and I2P networks.
| Service | Proxy Frontend |
|---|---|
| YouTube | Invidious |
| Twitter/X | Nitter |
| Libreddit | |
| Google Search | SearX |
| TikTok | ProxiTok |
Install a userscript manager:
Click the script file to install
Grant necessary permissions when prompted
Script activates automatically on supported sites
Automatic Mode: Visit any supported service (YouTube, Twitter, Reddit, etc.). The script detects the platform and redirects to a privacy proxy after displaying a loading screen.
Link Rewriting: When browsing sites containing links to tracked services, the script automatically rewrites them to proxy equivalents. Modified links appear in green.
Network Selection:
Cache Management:
The script operates with secure defaults. Advanced users can modify:
const CONFIG = {
HEALTH_CHECK_INTERVAL: 300000, // 5 minutes
INSTANCE_TIMEOUT: 4000, // 4 seconds
PARALLEL_CHECKS: 4, // Concurrent checks
MAX_RETRY_ATTEMPTS: 2 // Retry count
};
Health Monitor: Implements exponential scoring based on latency (30%), uptime (50%), and reliability (20%). Caches results with timestamp validation.
Instance Manager: Maintains separate pools for clearnet and I2P, selecting optimal instances through parallel health verification.
URL Processor: Uses WeakSet tracking to prevent duplicate processing, with regex-based service detection.
Loading Interface: Injects animated redirect page using document.write(), avoiding CORS restrictions while maintaining visual continuity.
anonymous: true flag to prevent credential leakageRedirect loops: Clear browser cache and script storage via menu
No instances available: Check network connectivity, verify userscript manager permissions
Slow redirects: Network may be selected incorrectly. I2P requires properly configured router with established tunnels
Links not rewriting: Disable conflicting userscripts, ensure script runs at document-start
This project builds upon the original Proxy Redirect userscript by Schimon Jehudah, with significant architectural improvements:
The loading page design draws inspiration from contemporary loader patterns emphasizing visual feedback and brand consistency.
Instance suggestions, bug reports, and performance optimizations welcomed at the project homepage.