Last active
September 5, 2018 14:47
-
-
Save davlgd/2212373cc16f9eeb2f54910daa863995 to your computer and use it in GitHub Desktop.
Bad Search Engine Blocker - Script (étape 2)
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 (request) { | |
const askedURL = new URL(request.url); | |
return { redirectUrl: "https://www.framabee.org?q=" + askedURL.searchParams.get("q")}; | |
}, | |
{ urls: ["https://*.google.com/*"] }, ["blocking"]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment