Greasy Fork is available in English.

Twitch Screenshot

Adds a button with screenshot icon to the Player to enable you to copy to clipboard/download screenshots.

< Twitch Screenshot 피드백

리뷰: 좋음 - 잘 동작함

§
작성: 2023-09-08

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?

§
작성: 2023-09-09

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.

yungsamd17개발자
§
작성: 2023-09-11

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.

yungsamd17개발자
§
작성: 2023-09-11

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.

댓글 남기기

댓글을 남기려면 로그인하세요.