Skip to content

Commit

Permalink
Add search tokens to image and video searches
Browse files Browse the repository at this point in the history
  • Loading branch information
chrmod committed Feb 16, 2021
1 parent d7a5b50 commit ce767b6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.2.4",
"version": "0.2.5",
"browser_specific_settings": {
"gecko": {
"id": "[email protected]"
Expand Down

0 comments on commit ce767b6

Please sign in to comment.