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

281
Views
How to get the new youtube title when yt-navigate-finish runs?

I have this code:

function run() {
  browser.runtime.sendMessage({
    action: "notify",
    payload: {
      url: window.location.href,
      title: document.title,
    },
  });
}
window.addEventListener("yt-navigate-finish", run, true);

The url is correct, when I click on a new youtube video, the url changes. But the title is from the old video.

For example, I got this result:

{ url: "https://www.youtube.com/watch?v=UwMlgKUQaQ4", 
title: "Spire Labs: Fault-tolerance with Kubernetes on AWS - YouTubetest" 
}

The URL is different, the title s different (the title is from the video I was on previously.

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

0

Read it from document.querySelector('a.ytp-title-link').textContent

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!