请马上登录,朋友们都在花潮里等着你哦:)
您需要 登录 才可以下载或查看,没有账号?立即注册
x
百分浏览器(Cent Browser)是我中意的基于 Chromium 封装的第三方浏览器之一,但我不太满意它的“新标签页”,原因很简单:新建标签页自带的搜索框默认使用百度、可选谷歌引擎,百度搜索已是垃圾,谷歌搜索没架个梯子就是摆设,二者均不提供替换的操作入口。
“新标签页”支持自定义网址,这给用户预留了操作空间:我们可以放弃默认的新标签页,取而代之使用自建的本地页面,假设命名为 go.html,放在 C 盘根目录下。go.html 内容如下(搜索引擎使用必应,可行更换其它引擎):
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8" />
<title>New Tab</title>
<style>
a { width: 120px; text-align: center; color: darkred; margin-right: 20px; padding: 4px 10px; background: lightblue; border-radius: 12px; text-decoration: none; }
a:hover { background: skyblue; }
.commonbox { width: 60%; margin: 60px auto; }
.anchor { display: flex; flex-wrap: wrap; gap: 20px; }
.tMid { text-align: center; }
#search { width: 600px; padding: 10px 20px; border-radius: 20px; font-size: 18px; }
#btnGo { font-size: 20px; border: none; outline: none; background: none; cursor: pointer; }
</style>
</head>
<body>
<div class="commonbox">
<p class="tMid">
<input id="search" type="search" placeholder="关键词..." />
<input id="btnGo" type="button" value="🔍" />
</p>
</div>
<div class="anchor commonbox">
<a href="https://www.huachaowang.com/forum.php">花潮论坛</a>
<a href="https://www.tukuppt.com/video/">熊猫视频</a>
<a href="https://588ku.com/video/">千库视频</a>
<!-- 更多的链接自己补充 -->
</div>
<script>
btnGo.onclick = () => go();
search.onkeyup = (e) => {
if (e.key === 'Enter') go();
};
function go() {
if (search.value.trim() === '') {
search.focus();
return;
}
window.location.href = `https://cn.bing.com/search?q=${search.value}`;
}
</script>
</body>
</html>
然后进入百分浏览器的设置页面,找到“新标签页”,勾选“自定义网址”,在网址输入栏输入 c:\go.html 或 file:///c:/go.html 即可(后者是规范表达法,也是前者成功输入后浏览器自动转化的结果,它实际上是使用 file 协议打开本地 .html 文件)。
如果需要首页即“起始页面”页也指向“新标签页”,可在设置中找到“起始页面”,确保其上的“打开新标签页”已经被选中,若没有被选中,点选它。
|