skip nav

blog

Graphics Card Exposure Test

Sometimes, your graphics card's details are exposed to the web. Yours are not right now, though, which is good. Try opening this page in different browsers – I found Chrome had much more information than Firefox, for example.

The Code

//Function to grab GPU data. const getGPU = () => { const ctx = document.createElement('canvas').getContext('webgl') const ext = ctx.getExtension('WEBGL_debug_renderer_info') return { card: ctx.getParameter(ext.UNMASKED_RENDERER_WEBGL), vendor: ctx.getParameter(ext.UNMASKED_VENDOR_WEBGL), } } //Put the GPU data into the web page. const gpu = getGPU() document.getElementById('graphics-card-test-output') .textContent = `Yours is ${gpu.vendor}'s ${gpu.card}.` tags: webgl, privacy, demo, web dev