首页 |  我的博客 |  查看该博主内容分类 | 

谷歌翻译无法使用,google翻译失效,googleapis失效的解决方案(1.18更)

我们日常工作和学习中,都无可避免的参考一些英文网站或者一些优秀的外国文献,这时候谷歌翻译就显得尤为重要。现在忽然不能使用了,经过几番探索,可通过修改dns解析即可恢复,希望对大家有所帮助。

11.14更

可直接尝试使用142.250.4.90写入hosts,下面方法失效后,目前我都用这个,还不行,可以留言。

修改hosts解析

找到本机的hosts文件,win一般是C:\Windows\System32\drivers\etc\hosts,mac/etc/hosts

用记事本打开hosts,在末尾加上可ping到的ip地址+translate.googleapis.com,如220.123.123.162 translate.googleapis.com

  • ping如图所示:
    image

  • hosts编辑:
    image

之后保存即可重新使用谷歌翻译。

注:如果无法使用了,有可能ip变了,重新查询新的ip进行修改即可。

2023.1.18更

目前可以使用一款软件获取可用ip,并自动替换hosts。下载软件
使用步骤(解压使用):

  1. 点击获取IP
  2. 点击测试可用
  3. 在获取的IP中随意双击一个可用的,提示“翻译修复完成”
  4. 点击检测当前
    • 提示不可用:重复3的步骤
    • 提示“...可用,请重新启动浏览器...”,到此已完成,可以关闭软件开始使用谷歌翻译。
      image
      image
      --- 软件来源:小七
posted @ 2022-10-07 23:24  Z哎呀  阅读(601)  评论(0编辑  收藏  举报
// let homeEle = document.querySelector('body') // homeEle.setAttribute('id', 'particles-js') // /* ---- particles.js config ---- */ // particlesJS("particles-js", { // "particles": { // "number": { // "value": 380, // "density": { // "enable": true, // "value_area": 800 // } // }, // "color": { // "value": "#ffffff" // }, // "shape": { // "type": "circle", // "stroke": { // "width": 0, // "color": "#000000" // }, // "polygon": { // "nb_sides": 5 // }, // "image": { // "src": "img/github.svg", // "width": 100, // "height": 100 // } // }, // "opacity": { // "value": 0.5, // "random": false, // "anim": { // "enable": false, // "speed": 1, // "opacity_min": 0.1, // "sync": false // } // }, // "size": { // "value": 3, // "random": true, // "anim": { // "enable": false, // "speed": 40, // "size_min": 0.1, // "sync": false // } // }, // "line_linked": { // "enable": true, // "distance": 150, // "color": "#ffffff", // "opacity": 0.4, // "width": 1 // }, // "move": { // "enable": true, // "speed": 6, // "direction": "none", // "random": false, // "straight": false, // "out_mode": "out", // "bounce": false, // "attract": { // "enable": false, // "rotateX": 600, // "rotateY": 1200 // } // } // }, // "interactivity": { // "detect_on": "canvas", // "events": { // "onhover": { // "enable": true, // "mode": "grab" // }, // "onclick": { // "enable": true, // "mode": "push" // }, // "resize": true // }, // "modes": { // "grab": { // "distance": 140, // "line_linked": { // "opacity": 1 // } // }, // "bubble": { // "distance": 400, // "size": 40, // "duration": 2, // "opacity": 8, // "speed": 3 // }, // "repulse": { // "distance": 200, // "duration": 0.4 // }, // "push": { // "particles_nb": 4 // }, // "remove": { // "particles_nb": 2 // } // } // }, // "retina_detect": true // }); // var count_particles, stats, update; // stats = new Stats; // stats.setMode(0); // stats.domElement.style.position = 'absolute'; // stats.domElement.style.left = '0px'; // stats.domElement.style.top = '0px'; // document.body.appendChild(stats.domElement); // count_particles = document.querySelector('.js-count-particles'); // update = function() { // stats.begin(); // stats.end(); // if (window.pJSDom[0].pJS.particles && window.pJSDom[0].pJS.particles.array) { // count_particles.innerText = window.pJSDom[0].pJS.particles.array.length; // } // requestAnimationFrame(update); // }; // requestAnimationFrame(update);