在浏览器输入 baidu.com 时会在页面加载前重定向到 bing.com
// ==UserScript==
// @name 重定向 Baidu.com 到 Bing.com
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Redirects baidu.com to bing.com without loading baidu
// @author magician lib
// @match *://*.baidu.com/*
// @run-at document-start
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// @license MIT
// ==/UserScript==
(function () {
'use strict';
// 直接在页面加载前重定向到 Bing
window.location.replace("https://bing.com");
})();
本想使用 grant 增加一个支持自定义跳转链接,好像又没这需求~
1
aloxaf 2024-11-08 15:01:11 +08:00 |
2
wfg 2024-11-08 15:13:03 +08:00 via iPhone
使用場景是什麼呢?鍵盤 N 或 G 鍵壞掉時嗎?
|
3
porrt8 2024-11-08 15:20:04 +08:00
description 给人的感觉是存在这么一种我需要通过百度搜索 bing 才能使用 bing 的场景……
|
4
Hopetree 2024-11-08 15:20:43 +08:00
你这是无聊到什么程度,就很离谱
|
5
mengdu 2024-11-08 15:25:33 +08:00 从这个 B 到那个 B 。
|
6
mingtdlb 2024-11-08 15:30:10 +08:00
你这有点无聊啊。我习惯 bing.com 加 tab 。chrome 设置 bing 为搜索引擎会加载 bing 的网页,巨硬有病。。
|
7
wzdsfl 2024-11-08 17:48:18 +08:00
|
8
ronman 2024-11-08 18:28:14 +08:00
已经十多年不会输入 Baidu 了
|
9
royzxq 2024-11-08 20:15:20 +08:00
不是哥们儿?
|
10
TomVista 2024-11-08 20:17:08 +08:00
你他妈真是个天才
|
11
blackgloves 2024-11-08 23:58:34 +08:00
??
|
12
wogogoing PRO 感觉正常的需求是将在 baidu 的搜索词直接携带到 bing 中进行搜索,这样才是造福人类❤️。
|
13
cookii 2024-11-09 13:17:39 +08:00 via Android
直接 dns 屏蔽关键字 baidu
|
14
Leoking222 2024-11-09 13:53:08 +08:00
不是哥们,这么玩是吧
|
15
magicianlib OP @mingtdlb 写这个原因是搜索是浏览器设置的默认搜索引擎是 google ,但是吧梯子断断续续的不稳定,所以偶尔会习惯是输入 baidu...,就想着习惯就习惯吧,干脆直接使用 bing 跳转好了
|