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

declaractiveNetRequest #833

Open
absiddiqi opened this issue Feb 22, 2023 · 1 comment
Open

declaractiveNetRequest #833

absiddiqi opened this issue Feb 22, 2023 · 1 comment

Comments

@absiddiqi
Copy link

Trying to add a parameter to any request going to getshowflow.com.
Original request: getshowflow.com/abcd
Modified request should be getshowflow.com/abcd**?username=siddiqi**

no luck so far, thanks for the help!

[
{
"id": 1,
"priority": 1,
"action": {
"type": "redirect",
"redirect": {
"redirectUrl": "https://www.getshowflow.com/abcd?&user=username",
"permanent": false
}
},
"condition": {
"urlFilter": "https://www.getshowflow.com/*",
"resourceTypes": ["main_frame"]
}
}
]

@Abhilekhgautam
Copy link
Contributor

Try this one,
"action": { "type": "redirect", "redirect": { "url": "https://www.getshowflow.com/abcd?&user=username" } },

reference : https://developer.chrome.com/docs/extensions/reference/declarativeNetRequest/#example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants