谷歌翻译网页插件无法使用怎么办?

2022年11月23日 16:22:42 114阅读 0评论

  最近谷歌退出中国市场而移除了Google服务框架,无法使用Google相关服务,所以谷歌翻译也用不了了,这对很多用户影响还是很大的,这里小编为大家带来的谷歌翻译网页插件无法使用的解决方案,希望能帮到大家!

谷歌浏览器 V109.0.5396.2 电脑版

谷歌浏览器 V109.0.5396.2 电脑版 [电脑软件]

  谷歌翻译网页插件无法使用怎么办?

  首先在本站下载谷歌浏览器bat脚本一键执行【点击下载】

  注意:要以管理员身份打开!

  @setlocal enabledelayedexpansion

  @echo off

  set “source_domain=google.cn”

  set “target_domain=translate.googleapis.com”

  set “hosts_file=C:\Windows\System32\drivers\etc\hosts”

  for /f “skip=4 tokens=2” %%a in (‘“nslookup %source_domain% 2>NUL”’) do set ip=%%a

  set “old_rule=null”

  set “new_rule=%ip% %target_domain%”

  for /f “tokens=*” %%i in (‘type %hosts_file%’) do (

  set “line=%%i”

  :: Retrieve the rule If the target domain has been exists in the line.

  if not “!line:%target_domain%=!”==“%%i” set “old_rule=%%i”

  )

  if not “%old_rule%”==“null” (

  if not “%old_rule%”==“%new_rule%” (

  echo Deleting the rule “%old_rule%”

  echo Adding the rule “%new_rule%”

  for /f “tokens=*” %%i in (‘type “%hosts_file%” ^| find /v /n “” ^& break ^> “%hosts_file%”’) do (

  set “rule=%%i”

  set “rule=!rule:*]=!”

  if “%old_rule%”==“!rule!” set “rule=%new_rule%”

  >>%hosts_file% echo(!rule!

  )

  ) else (

  echo The rule already exists, nothing to do.

  )

  ) else (

  echo Adding the rule “%new_rule%”

  echo.>>%hosts_file%

  echo.>>%hosts_file%

  echo # Fix Google Translate CN>>%hosts_file%

  echo %new_rule%>>%hosts_file%

  )

  echo Done.

  pause

以上就是文章“谷歌翻译网页插件无法使用怎么办?”全部内容,如需学习更多电脑、手机使用经验方法教程、软件使用知识请在本站搜索,科普知识网专注于普及各类生活小常识、冷知识、等生活中常用的操作经验;如果本篇文章对您有帮助,请不吝支持本站。

本文链接:http://puzhishi.com/jingyan/88829.html

1.免责声明:本文编辑科普知识——文章若无特殊说明,均属本站原创,若转载文章请注明网址。

2.本站除部分作品系原创外,其余均来自网络或其它渠道,本站保留其原作者的著作权!如有侵权,请与站长联系!

发表评论

快捷回复: 表情:
评论列表 (暂无评论,114人围观)

还没有评论,来说两句吧...

目录[+]