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

时间:2023-03-09 09:01:30 

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

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

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

首先在本站下载谷歌浏览器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

标签:谷歌浏览器,谷歌翻译网页插件无法使用
0
投稿

猜你喜欢

  • XP系统如何设置局域网共享?XP局域网共享教程

    2023-04-14 17:18:20
  • 迅捷在线PDF转word转换器的多种特点与详细使用图文步骤

    2023-07-29 02:19:40
  • Win10系统怎么使用免打扰模式?Win10系统使用免打扰模式的方法

    2022-04-28 12:32:46
  • 如何美化Windows10字体达到类似mac的效果?

    2023-02-03 00:15:56
  • Excel中表格常用快捷键的操作方法

    2023-04-23 23:50:08
  • 微软将会分批次进行升级Windows 10

    2023-01-02 20:12:20
  • word怎样做水印

    2022-04-22 06:32:23
  • Win11硬盘读写慢怎么办? Win11硬盘读写速度慢的解决办法

    2022-09-26 06:31:27
  • word中怎么导出图片?

    2022-02-17 12:48:05
  • iOS 11越狱工具即将到来,越狱用户尽快降级

    2022-09-27 07:25:40
  • Excel怎么给文档加密

    2023-06-24 02:00:34
  • PPT制作灵活应用-图文的排列与布局

    2022-11-01 21:16:16
  • Xmind思维导图教程三十六:如何在Xmind中添加大括号?

    2022-11-02 00:29:05
  • Excel中不输入等号计算表达式的值

    2023-04-10 23:31:57
  • WPS表单公式组合税计算

    2023-04-16 15:42:14
  • 订阅 Apple Music 后,如何在不同设备之间同步资料库?

    2023-11-04 14:46:56
  • Mac应用程序的Power Nap功能如何关闭

    2023-03-07 01:20:30
  • Win11不能玩红警怎么办?Win11怎么玩红警?

    2023-03-12 05:28:15
  • Win7系统电脑发起远程控制功能的操作方法

    2023-07-02 22:19:40
  • 迅捷视频转换器转换视频教程

    2022-06-06 18:17:39
  • asp之家 电脑教程 m.aspxhome.com