Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add search tokens to image and video searches #47

Merged
merged 1 commit into from Feb 16, 2021
Merged
Changes from all commits
Commits
File filter
Filter file types
Jump to
Jump to file
Failed to load files.

Always

Just for now

Add search tokens to image and video searches

  • Loading branch information
chrmod committed Feb 16, 2021
commit 3f44034ba21a92696b26b2705cc7a07e343cf3e2
@@ -111,7 +111,16 @@ async function start() {
return {
requestHeaders,
};
}, { urls: [`${SERP_BASE_URL}/search*`, USE_STAGING ? 'https://staging.ghosterysearch.com/search*' : 'https://ghosterysearch.com/search*']}, ["blocking", "requestHeaders"]);
}, {
urls: [
`${SERP_BASE_URL}/search*`,
`${SERP_BASE_URL}/images/search*`,
`${SERP_BASE_URL}/videos/search*`,
USE_STAGING ? 'https://staging.ghosterysearch.com/search*' : 'https://ghosterysearch.com/search*',
USE_STAGING ? 'https://staging.ghosterysearch.com/images/search*' : 'https://ghosterysearch.com/images/search*',
USE_STAGING ? 'https://staging.ghosterysearch.com/videos/search*' : 'https://ghosterysearch.com/videos/search*',
],
}, ["blocking", "requestHeaders"]);

// TODO: this should only run in Ghostery Dawn
browser.webRequest.onBeforeSendHeaders.addListener(async (details) => {
@@ -1,5 +1,5 @@
{
"version": "0.2.4",
"version": "0.2.5",
"browser_specific_settings": {
"gecko": {
"id": "search@ghostery.com"
ProTip! Use n and p to navigate between commits in a pull request.