Skip to content

Instantly share code, notes, and snippets.

@alane019
Last active June 9, 2021 07:14
Show Gist options
  • Save alane019/20c5a7f2d6906abed98dcce2c12894c1 to your computer and use it in GitHub Desktop.
Save alane019/20c5a7f2d6906abed98dcce2c12894c1 to your computer and use it in GitHub Desktop.
Udemy header bar display current video lesson name instead of course name (Chrome console snippet)
document.querySelector("#udemy > div.main-content-wrapper > div.main-content > div > div > div > div > header > div.header--course-details--3Swxk > h1 > a").innerText = document.querySelector("#tabs--3-content-4 > div > span > div > div:nth-child(1) > div.lecture-bookmark-v2--bookmark-header--2JV49 > div.lecture-bookmark-v2--section-actions-container--39_Ok > div.fx.lecture-bookmark-v2--section-description--2wldi > div.item-link.item-link--common--RP3fp.lecture-bookmark-v2--intro--132ek").innerText
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment