sereneblue / chameleon

WebExtension port of Random Agent Spoofer
https://sereneblue.github.io/chameleon
GNU General Public License v3.0
521 stars 53 forks source link

Can make gpu spoof #573

Open thanhlouis opened 1 year ago

thanhlouis commented 1 year ago

funcjs['getGpu'] = function() { var text = ''; var canvas = document.createElement("canvas"); var gl = canvas.getContext("experimental-webgl") || canvas.getContext("webgl"); var ext = gl.getExtension("WEBGL_debug_renderer_info"); if (gl && ext) { text = gl.getParameter(ext.UNMASKED_VENDOR_WEBGL) + '~' + gl.getParameter(ext.UNMASKED_RENDERER_WEBGL); } return text; }

An website use this for check multi account, can you make an feature to change name of gpu ?

sereneblue commented 1 year ago

Hi @thanhlouis,

This is something that has been requested a few times. I will likely add support for this in v0.30.0.

s-b-repo commented 2 weeks ago

funcjs['getGpu'] = function() { var text = ''; var canvas = document.createElement("canvas"); var gl = canvas.getContext("experimental-webgl") || canvas.getContext("webgl");

// Define your custom GPU vendor and renderer here
const spoofedVendor = "NVIDIA Corporation";
const spoofedRenderer = "NVIDIA GeForce GTX 1080";

var ext = gl.getExtension("WEBGL_debug_renderer_info");
if (gl && ext) {
    // Replace the actual GPU details with spoofed ones
    text = spoofedVendor + '~' + spoofedRenderer;
}
return text;

}