Skip to content

Instantly share code, notes, and snippets.

@mcjcloud
Created January 7, 2024 17:06
Show Gist options
  • Save mcjcloud/e14d08247cf6c9547acc4302df7ab269 to your computer and use it in GitHub Desktop.
Save mcjcloud/e14d08247cf6c9547acc4302df7ab269 to your computer and use it in GitHub Desktop.
Block facebook
function FindProxyForURL(url, host) {
alert(JSON.stringify({ url, host }));
if (url.includes('facebook.com')) {
return 'PROXY 127.0.0.1:4916;';
}
return 'DIRECT';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment