lkytal / GM

UserScripts for Firefox, Chrome and etc
https://lkytal.github.io/GM/
Other
212 stars 22 forks source link

Popup_Search翻译不能用了,提示Translate Error: #63

Closed linranc closed 3 years ago

linranc commented 3 years ago

挺突然的 不翻墙提示Translate Error: 翻墙提示

Translate Error:
Bad Request
guoh27 commented 3 years ago

+1

micr0dust commented 3 years ago

+1

guoh27 commented 3 years ago

463行,改成这样,工作账号就不提request了

    method: 'GET',
    url: `https://translate.google.cn/translate_a/single?client=gtx&dj=1&q=${popData.text}&sl=auto&tl=${lang}&hl=${lang}&ie=UTF-8&oe=UTF-8&source=icon&dt=t&dt=bd`,
    //data: `client=gtx&dj=1&q=${popData.text}&sl=auto&tl=${lang}&hl=${lang}&ie=UTF-8&oe=UTF-8&source=icon&dt=t&dt=bd`,
lkytal commented 3 years ago

Fixed

linranc commented 3 years ago

463行,改成这样,工作账号就不提request了

    method: 'GET',
    url: `https://translate.google.cn/translate_a/single?client=gtx&dj=1&q=${popData.text}&sl=auto&tl=${lang}&hl=${lang}&ie=UTF-8&oe=UTF-8&source=icon&dt=t&dt=bd`,
    //data: `client=gtx&dj=1&q=${popData.text}&sl=auto&tl=${lang}&hl=${lang}&ie=UTF-8&oe=UTF-8&source=icon&dt=t&dt=bd`,

翻墙可以用,不翻墙还是不行,无限转圈 可能吧