修复必应搜索结果自动返回顶部的问题

必应搜索有一个严重的Bug(无论是哪个浏览器),搜索出结果后,点击会在新标签页打开【ps:存在好几年的了】

如果在其他标签页停留时间稍长(甚至是仅仅十几秒),再返回搜索结果标签页时,就会发现Bing自动把界面给你退回顶部了,要浏览结果只能又从头开始。

目前的修复手段是使用油猴脚本。

首先在浏览器对应的插件市场或油猴官网中安装Tampermonkey 油猴扩展,然后在此基础上安装修复脚本,重启浏览器即可正常使用。

注意事项:

基本上所有浏览器都适用(只要允许安装插件/脚本),包括移动端

Google Chrome扩展商店你懂得需要某种工具,可以使用Crx搜搜下载备份的扩展,实在不行可以去油猴官网下载扩展

相关网站

修复脚本

https://greasyfork.org/zh-CN/scripts/461790-fix-for-bing-search-returns-to-the-top

脚本作者

https://greasyfork.org/zh-CN/users/1041813-geeknessfr

油猴官网

https://www.tampermonkey.net/

源码备份防止下架

// ==UserScript==
// @name         FIX for "Bing Search returns to the top" !
// @namespace    http://tampermonkey.net/
// @version      0.20.1
// @description  Stop doing weird things, Bing ;)
// @author       Geekness
// @match        http*://*.bing.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=bing.com
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    // Disable the scroll to top functionality
    function disableScrollToTop() {
        window.scrollTo = function(x, y) {
            if (y !== 0) {
                window.scrollTo.originalFunc(x, y);
            }
        };
        window.scrollTo.originalFunc = window.scrollTo;
    }

    // Listen for 'focus' events on the window
    window.addEventListener('focus', disableScrollToTop);
})();
© 版权声明
THE END
喜欢就支持一下吧
点赞9 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称

    暂无评论内容