Anti Snoop

Conceal information about network type (e.g. cellular/broadband), number of CPU cores (or Hyper Threads), and video adapter brand & model.

  1. // ==UserScript==
  2. // @name Anti Snoop
  3. // @namespace https://gf.qytechs.cn/en/users/85671-jcunews
  4. // @version 1.0.6
  5. // @license AGPLv3
  6. // @author jcunews
  7. // @description Conceal information about network type (e.g. cellular/broadband), number of CPU cores (or Hyper Threads), and video adapter brand & model.
  8. // @match *://*/*
  9. // @inject-into page
  10. // @grant none
  11. // @run-at document-start
  12. // ==/UserScript==
  13.  
  14. (() => {
  15. ["connection", "mozConnection", "webkitConnection", "hardwareConcurrency"].forEach((k, p) => {
  16. if (navigator[k] && (p = Object.getPrototypeOf(navigator, k))) {
  17. p.get = undefined;
  18. Object.defineProperty(navigator, k, p)
  19. }
  20. });
  21. [window.WebGL2RenderingContext, window.WebGLRenderingContext].forEach(fn => {
  22. if (fn && !fn.prototype.getParameter_) {
  23. fn.prototype.getParameter_ = fn.prototype.getParameter;
  24. fn.prototype.getParameter = function(n) {
  25. if ([37445, 37446].includes(n)) return "";
  26. return fn.prototype.getParameter_.apply(this, arguments)
  27. }
  28. }
  29. })
  30. })();

QingJ © 2025

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