Greasy Fork is available in English.
Adds a button with screenshot icon to the Player to enable you to copy to clipboard/download screenshots.
I've found a solution, and it works.
Add the following code after line 28:
canvas.toBlob(function(blob) {
const item = new ClipboardItem({ "image/png": blob });
navigator.clipboard.write([item]);
});
However, Firefox users (like me) need to go to "about:config" and set "dom.events.asyncClipboard.clipboardItem" to "true" in order to use it.
Great, someone has finally made a script for taking screenshots on Twitch.However, when I tried it, I found that it directly downloads the image after pressing the button.Is it possible to add a button for copying to the clipboard?
Nice, great to see that someone likes it, and yeah I was thinking about making it just copy screenshot into clipboard but In the end I didn't do It because of the exact reason of this:
I've found a solution, and it works.Add the following code after line 28:canvas.toBlob(function(blob) { const item = new ClipboardItem({ "image/png": blob }); navigator.clipboard.write([item]);});However, Firefox users (like me) need to go to "about:config" and set "dom.events.asyncClipboard.clipboardItem" to "true" in order to use it.
But maybe I'll just update the script so the screenshot just copies to clipboard and just add a note for Firefox users about editing "about:config". Again thanks for the review and suggestions on how to improve the script.
Just implemented the feature you wanted with version v1.5. If you find any bugs or inconsistencies with the script you can report them here, or on my userscripts repo.
Great, someone has finally made a script for taking screenshots on Twitch.
However, when I tried it, I found that it directly downloads the image after pressing the button.
Is it possible to add a button for copying to the clipboard?