Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

333
Views
Can I use a javascript bookmarklet to copy a Youtube transcript without timestamps, now that they removed this option?

There used to be an option on Youtube to remove timestamps from the transcript, which I often used to copy it to the clipboard. No longer. Now my solution is to go into the Code Inspector, and set the class property to display:none. It works, but I'd like to automate it with a bookmarklet. This is as far as I've gone:

function() {
    var trans = '';
    const captions = document.querySelectorAll("ytd-transcript-segment-renderer > div > yt-formatted-string");
    for (let i = 0; i < captions.length; i++) {
        trans += ' ' + captions[i].textContent
    };
    navigator.clipboard.writeText(trans)
}

Help?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Nailed it!

javascript: (function() {
    var captions = "";
    document.querySelector("ytd-menu-service-item-renderer.style-scope:nth-child(2) > tp-yt-paper-item:nth-child(1) > yt-formatted-string:nth-child(2)").click();
    [].slice.call(document.querySelectorAll("ytd-transcript-segment-renderer > div > yt-formatted-string")).forEach(caption => captions += caption.textContent + " ");
    navigator.clipboard.writeText(captions)
})()

Can it be improved?

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!