Created
October 16, 2014 18:13
-
-
Save handsomematt/fd93c31bd324828754a1 to your computer and use it in GitHub Desktop.
Chrome extension to kill Steam link filter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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