code-charity / youtube

[top~1 open YouTube & Video web-extension] Enrich your experience & choice! 🧰180+ options & clever features📌set+forget📌Longest-standing(been tough). Please join🧩us👨‍👩‍👧‍👧 ..⋮ {playback|content discovery|player|extra buttons|distractions|related videos|shorts|ads|quality|codec|full tab|full screen}
http://improvedtube.com
Other
3.44k stars 521 forks source link

[Idea] copy YouTube video transcriptions efficiently. And/or .SRT (.TXT, citiation, ...) #1761

Open 0uros opened 1 year ago

0uros commented 1 year ago

PROBLEM: Many times, I want to copy the transcription of a YouTube video, but I have to manually select all the text in the video to be able to copy it, making it time-consuming and tedious when dealing with multiple videos (this is useful for sending it to some AI).

SOLUTION:
Add an option to quickly copy everything in a transcription, like a button, either in the transcription section itself or elsewhere in the UI.

ALTERNATIVES: Some way to automatically select all the text in transcriptions.

RELEVANCE / SCOPE: Scope is complicated to measure; it's something I don't think many people are actively looking for, but at the same time, it's something I haven't seen anyone develop, so it could be niche, but it could also be the first and only solution to that niche problem or situation.

"SIDE EFFECTS":
I don't believe anyone would be bothered by an easier way to do something that can already be done.

SHORT Table (Summary)
Problem Want to copy YouTube video transcriptions efficiently.
Solution Add a quick "Copy All" option in the transcription section.
Alternatives Provide automatic text selection in transcriptions.
Scope Niche problem; potential unique solution.
Side effects Unlikely to bother users.
asifurrahaman754 commented 1 year ago

The idea is good, i would like to work on this, can anyone assign me?

asifurrahaman754 commented 1 year ago

@ImprovedTube any suggestion as to how can I get started with the codebase? I have read the wiki and discussion but didn't find a straightforward guide to get started, I might miss something important. Would really help if you can tell

ImprovedTube commented 1 year ago

hi @asifurrahaman754! i regret the delay, you can join us on discord too.

ImprovedTube commented 1 year ago

most features can be developed indepently of the rest @asifurrahaman754

(this one might not be one line, while #1774 could be near the minimum.)

thank you again!

asifurrahaman754 commented 1 year ago

most features can be developed indepently of the rest @asifurrahaman754

of course this one might not be e smallest webdev task found in #good-first-issue, while #1774 should be near the minimum.

thank you again!

Thanks for your help

ElmorenohWTF commented 12 months ago

I think this could be incredibly useful for things like asking ChatGPT for video summaries. I would love to see this implemented.

asifurrahaman754 commented 11 months ago

@ImprovedTube please review the pr and please add "hacktoberfest-accepted" on that pr.

asifurrahaman754 commented 11 months ago

@0uros enjoy the feature

0uros commented 11 months ago

@asifurrahaman754 Thanks! The feature has already been implemented? Under what name can I search for it or where it is located?

asifurrahaman754 commented 11 months ago

@0uros you can find it Appearance -> Details -> Copy transcript

0uros commented 11 months ago

@asifurrahaman754 atm I don't see the option (version 4.355) :P

Thanks anyway, I hope to use the feature soon

asifurrahaman754 commented 11 months ago

@0uros the feature is approved, maybe they didn't add it yet

ImprovedTube commented 11 months ago

hi @0uros you can test the github repo version https://github.com/code-charity/youtube/archive/master.zip it can also be uploaded to the stores too with the next update, besides it didnt work here just yet.

asifurrahaman754 commented 11 months ago

@ImprovedTube I also thought that I could add a copy button in the youtube description. that way the user can easily copy the transcript in just one click. what do you think about that?And about the tab permission, i needed that. I am not sure if i can do that without the tab permission. If you have anything, please suggest

ImprovedTube commented 11 months ago

hi! @asifurrahaman754

also thought that I could add a copy button in the youtube description

also can be the 4th one here:


I am not sure if i can do that without the tab permission.

why? this part looks optional:

const YOUTUBE_WATCH_URL = "https://www.youtube.com/watch?v"; chrome.runtime.onMessage.addListener( function(request) { if (request.action === "copyTranscript" && request?.tab?.url.startsWith(YOUTUBE_WATCH_URL)){ copyTranscript(); }else if(request.action === "copyTranscript" && !request?.tab?.url.startsWith(YOUTUBE_WATCH_URL)){ alert('This feature is only available on YouTube video pages.'); } } );

thanks!

0uros commented 9 months ago

Any news? 😅

ImprovedTube commented 9 months ago

hi @0uros, hopefully soon! (entertianing? : https://github.com/code-charity/youtube/issues/1568#issuecomment-1870934393 )

happy 2024 @asifurrahaman754 ♡

ThoughtPhotography commented 4 months ago

Hoping to be able to download/copy full transcripts was the main reason I installed the add-on so I'd love to see it added.

ImprovedTube commented 2 months ago

hi! and thanks @CATIOR (#2467)

this work is still pending to be finished:
https://github.com/code-charity/youtube/pull/1792