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

Rebranding #42

Merged
merged 5 commits into from Jan 18, 2021
Merged
Changes from 1 commit
Commits
File filter
Filter file types
Jump to
Jump to file
Failed to load files.

Always

Just for now

Ghostery Dawn detection

  • Loading branch information
chrmod committed Jan 18, 2021
commit cce1cf9a8a66034ab25b5892770e5a150b2e4ce0
@@ -112,6 +112,18 @@ async function start() {
requestHeaders,
};
}, { urls: [`${SERP_BASE_URL}/search*`]}, ["blocking", "requestHeaders"]);

// TODO: this should only run in Ghostery Dawn
This conversation was marked as resolved by chrmod

This comment has been minimized.

@remusao

remusao Jan 18, 2021

Is there already a ticket for this?

This comment has been minimized.

@chrmod

chrmod Jan 18, 2021
Author Member

Nope.

browser.webRequest.onBeforeSendHeaders.addListener(async (details) => {
const { requestHeaders } = details;
requestHeaders.push({
name: "SERP-browser",
value: "Ghostery Dawn",
});
return {
requestHeaders,
};
}, { urls: [`${SERP_BASE_URL}/*`]}, ["blocking", "requestHeaders"]);
}

browser.runtime.onMessage.addListener(async ({ action, args }, { tab }) => {
ProTip! Use n and p to navigate between commits in a pull request.