From 629275899400e5cd6218338379ebb0e85a6f173c Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Thu, 23 Apr 2020 16:34:27 -0400 Subject: [PATCH] Add a watermark to screenshots --- macrovision.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/macrovision.js b/macrovision.js index 679c08fe..9263e239 100644 --- a/macrovision.js +++ b/macrovision.js @@ -2307,6 +2307,13 @@ function exportCanvas(callback) { function copyScreenshot() { renderToCanvas(); + + /** @type {CanvasRenderingContext2D} */ + const ctx = document.querySelector("#display").getContext("2d"); + + ctx.fillStyle = "#555"; + ctx.font = "normal normal lighter 16pt coda"; + ctx.fillText("macrovision.crux.sexy", 10, 25); exportCanvas(blob => { navigator.clipboard.write([ new ClipboardItem({