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.

  1. // ==UserScript==
  2. // @name Disable Bing Search Result User Data Tracking
  3. // @namespace https://gf.qytechs.cn/en/users/85671-jcunews
  4. // @version 1.0.1
  5. // @license AGPLv3
  6. // @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.
  7. // @author jcunews
  8. // @match *://www.bing.com/*
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. ((xo, xs) => {
  13. xo = XMLHttpRequest.prototype.open;
  14. XMLHttpRequest.prototype.open = function(mtd, url) {
  15. this.dbsrudtUrl = url;
  16. return xo.apply(this, arguments);
  17. };
  18. xs = XMLHttpRequest.prototype.send;
  19. XMLHttpRequest.prototype.send = function() {
  20. if ((/fd\/ls\/lsp\.aspx/).test(this.dbsrudtUrl)) return;
  21. return xs.apply(this, arguments);
  22. };
  23. document.querySelectorAll('a[h]').forEach(a => {
  24. a.removeAttribute("h");
  25. a.rel += (a.rel && " ") + "noreferrer";
  26. });
  27. })();

QingJ © 2025

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