Win10系统下把小娜搜索引擎换成谷歌的技巧详解
时间:2023-09-05 11:16:14
众所周知,win10系统中的小娜其实只是一个搜索工具,而小娜默认的搜索引擎是微软的必应搜索。但是必应搜索用的人毕竟太少,一般都是用百度或者谷歌的。那么,怎么将小娜搜索引擎换成谷歌的呢?下面,小编就给大家介绍Win10系统下把小娜搜索引擎换成谷歌的技巧详解。
小娜
具体方法
1、在桌面新建名为CortanaUseGoogle的文件夹(以谷歌为例,文章最后提供baidu方法);
2、在文件夹内新建两个txt文档,并分别重命名(连同txt后缀)为CortanaUseGoogle.js和manifest.json;
3、用记事本打开CortanaUseGoogle.js,将以下代码粘贴其中,保存。
chrome.webRequest.onBeforeRequest.addListener(
function(details) {
return { redirectUrl: “https://www.google.com/search?q=” + details.url.split(/=|&/)[1].replace(“%20”, “+”)};
},
{urls: [“https://cn.bing.com/search*”]},
[“blocking”]
);
4、用记事本打开manifest.json,将以下代码粘贴其中,保存。
{
“name”: “Cortana use Google”,
“version”: “1.0”,
“manifest_version”: 2,
“description”: “Just a extension”,
“background”: {
“scripts”: [ “CortanaUseGoogle.js” ]
},
“permissions”: [
“webRequest”,
“webRequestBlocking”,
“https://cn.bing.com/”
]
}
5、打开Chrome浏览器设置——扩展程序,在页面顶部勾选“开发者模式”,点击“打包扩展程序”,选择CortanaUseGoogle文件夹即可。最终会在CortanaUseGoogle同目录中生成crx扩展文件,把它拖放到Chrome浏览器窗口中即可安装。
现在可以试一下Cortana搜索,看是不是已经可以使用谷歌搜索了呢?提示下,需要将Chrome设置为默认浏览器。
如果你想使用国内搜索引擎,比如baidu,可以将第一段代码中的https://www.google.com/search?q= 替换为 http://www.baidu.com/s?wd=,并去掉.replace(“%20”, “+”)。至于其他搜索引擎聪明的你认真观察一下地址结构应该能够摸索出来。
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
电脑版WPS演示文稿怎么批量删除动画
![](https://img.aspxhome.com/file/2023/7/a183147_0s.png)
Win10错误代码0xc1900130怎么办?更新错误代码0xc1900130解决方法
![](https://img.aspxhome.com/file/2023/26/a221331_0s.jpg)
excel mid函数使用方法 返回字符串文本所指定位置并指定个数的字符
![](https://img.aspxhome.com/file/2023/7/a163157_0s.png)
爱站工具包安装出错怎么办
![](https://img.aspxhome.com/file/2023/8/a338393_0s.gif)
Windows 10想不火都难!
![](https://img.aspxhome.com/file/2023/2/a287139_0s.jpg)
Word中设置段落对齐的技巧总结
![](https://img.aspxhome.com/file/2023/0/24970_0s.png)
Win7系统怎么关闭tablet pc输入面板?
![](https://img.aspxhome.com/file/2023/27/a231815_0s.jpg)
win7系统打开迅雷就死机怎么办?
![](https://img.aspxhome.com/file/2023/4/a310706_0s.jpg)
Win7开机动画如何下载:Windows8闪点
![](https://img.aspxhome.com/file/2023/29/a259010_0s.gif)
welink如何创建会议
![](https://img.aspxhome.com/file/2023/9/a341047_0s.png)
Word2016“此功能看似已中断 并需要修复”怎么办?
![](https://img.aspxhome.com/file/2023/3/25453_0s.png)
如何开始在 Mac 上使用快捷方式?
![](https://img.aspxhome.com/file/2023/0/a204570_0s.jpeg)
360老是提示你是否设为默认浏览器,怎么取消?
![](https://img.aspxhome.com/file/2023/9/a343535_0s.jpg)
Excel提取括号内数字实例加公式剖析
使用Super PhotoCut,轻松拥有蓝天背景!
![](https://img.aspxhome.com/file/2023/2/a209702_0s.jpeg)
百度网盘怎么设置密码锁?百度网盘设置密码锁的方法
![](https://img.aspxhome.com/file/2023/8/a334498_0s.jpg)
如何解决wps文字中图片不显示问题
win7系统使用打印机提示操作无法完成错误代码0x000006ba解决方法
![](https://img.aspxhome.com/file/2023/28/a242098_0s.png)
WPS表格中输入带钩方框的方法
AutoCAD安装失败提示错误代码1719的解决办法
![](https://img.aspxhome.com/file/2023/3/a293656_0s.jpg)