mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-01-31 07:51:21 +01:00
19 lines
333 B
PHP
19 lines
333 B
PHP
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Test</title>
|
|
<script>
|
|
try {
|
|
var c = document.createElement("canvas").getContext("2d");
|
|
}
|
|
catch (e){
|
|
console.log(e);
|
|
var c = false;
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<script>
|
|
document.body.textContent = c? "context API not blocked": "context API blocked";
|
|
</script>
|
|
</body></html> |