Skip to content

Instantly share code, notes, and snippets.

@handsomematt
Created October 16, 2014 18:13
Show Gist options
  • Save handsomematt/fd93c31bd324828754a1 to your computer and use it in GitHub Desktop.
Save handsomematt/fd93c31bd324828754a1 to your computer and use it in GitHub Desktop.
Chrome extension to kill Steam link filter
chrome.webRequest.onBeforeRequest.addListener(function(pre_req) {
var url = pre_req.url;
var match = url.match("url=(.*)");
if (match && match[1]) {
return { redirectUrl: match[1] };
}
}, {
urls: ["*://steamcommunity.com/linkfilter*"]
}, [
"blocking"
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment