-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Autocorrect not properly applied to translations from certain networks #18
Comments
Hello, can you generate this request header parameter value based on this static script? |
@RipperTs As far as I know, yes, but I'm not certain. |
no. that' s wrong.
I debug and confirmed that. it has nothing to do with the header. |
the real code is in the HTML page. and it is encrypted. |
if you debug in dev tools, it may generate a wrong token like:
|
I don't have the time to look into this more, but if someone can figure it out I would happily merge the PR! |
Certain networks require the
X-Goog-BatchExecute-Bgr
header to be sent on requests, or the autocorrect will not be applied to some translations(seemingly typos where a letter is dropped, such as "I spea Dutch!" instead of "I speak Dutch!").The code for generating this header I believe is found in this static script.
I believe in
xH.prototype.s()
This would likely take a while to fix.
The text was updated successfully, but these errors were encountered: