Disable Bing Search Result User Data Tracking

Disable Bing Search result's user data tracking where trivial page interactions are recorded (e.g. page scrolling, mouse hover, etc.). It also disables link tracking that let Bing knows which off-site link the user is clicking. And additionally, this script ensures that the referring URL (i.e. the search page) is not sent to the target site.

// ==UserScript==
// @name         Disable Bing Search Result User Data Tracking
// @namespace    https://gf.qytechs.cn/en/users/85671-jcunews
// @version      1.0.1
// @license      AGPLv3
// @description  Disable Bing Search result's user data tracking where trivial page interactions are recorded (e.g. page scrolling, mouse hover, etc.). It also disables link tracking that let Bing knows which off-site link the user is clicking. And additionally, this script ensures that the referring URL (i.e. the search page) is not sent to the target site.
// @author       jcunews
// @match        *://www.bing.com/*
// @grant        none
// ==/UserScript==

((xo, xs) => {
  xo = XMLHttpRequest.prototype.open;
  XMLHttpRequest.prototype.open = function(mtd, url) {
    this.dbsrudtUrl = url;
    return xo.apply(this, arguments);
  };
  xs = XMLHttpRequest.prototype.send;
  XMLHttpRequest.prototype.send = function() {
    if ((/fd\/ls\/lsp\.aspx/).test(this.dbsrudtUrl)) return;
    return xs.apply(this, arguments);
  };
  document.querySelectorAll('a[h]').forEach(a => {
    a.removeAttribute("h");
    a.rel += (a.rel && " ") + "noreferrer";
  });
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址