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') return { card: ctx.getParameter(ctx.RENDERER), vendor: ctx.getParameter(ctx.VENDOR), } } //Put the GPU data into the web page. const {vendor, card} = getGPU() document.getElementById('graphics-card-test-output') .textContent = `For example, you are purportedly running ${vendor}'s ${card}.` tags: webgl, privacy, demo, web dev