FutureMillennium / Screenshot-YouTube

Chrome extension: Take a screenshot of any YouTube video with one click.
https://chrome.google.com/webstore/detail/screenshot-youtube/gjoijpfmdhbjkkgnmahganhoinjjpohk
133 stars 29 forks source link

grab transcript since last screenshot #11

Open 05gerald opened 3 years ago

05gerald commented 3 years ago

A very useful feature that would save a lot of time to anyone doing online learning for example:

FutureMillennium commented 3 years ago

What do you mean by transcript? The subtitles?

KoolKeith commented 3 years ago

I have also great interest in this. But for a more general use case. I just wanna incorporate the TimeSpamp (position) into the jpg file, as META DATA. Don't know how to go about... Sadly, I doubt that chrome let's you write accompanying MetaData for the screenshot file. I modded the script in a very nasty way, just extended the canvas size, and my desired data is printed onto it (as a bottom-side footer).

image

One idea was TamperMonkey's feature "GM_download", but I does not seem like it takes real meta data apart from a custom filename:

`GM_download(details), GM_download(url, name) Downloads a given URL to the local disk.

details can have the following attributes: url - the URL from where the data should be downloaded (required) name - the filename - for security reasons the file extension needs to be whitelisted at Tampermonkey's options page (required) headers - see GM_xmlhttpRequest for more details saveAs - boolean value, show a saveAs dialog onerror callback to be executed if this download ended up with an error onload callback to be executed if this download finished onprogress callback to be executed if this download made some progress ontimeout callback to be executed if this download failed due to a timeout The download argument of the onerror callback can have the following attributes: error - error reason not_enabled - the download feature isn't enabled by the user not_whitelisted - the requested file extension is not whitelisted not_permitted - the user enabled the download feature, but did not give the downloads permission not_supported - the download feature isn't supported by the browser/version not_succeeded - the download wasn't started or failed, the details attribute may provide more information details - detail about that error Returns an object with the following property: abort - function to be called to cancel this download

Depending on the download mode GM_info provides a property called downloadMode which is set to one of the following values: native, disabled or browser.`

source: https://www.tampermonkey.net/documentation.php#GM_download