Open thanhlouis opened 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.
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;
}
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 ?