Last active
May 1, 2020 16:12
-
-
Save headquarters/48b7a7fed1a3baf5499d8d107c4dd394 to your computer and use it in GitHub Desktop.
Scroll to next Linux Academy video
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function()%7Bvar%20list%20%3D%20document.querySelectorAll(%22.fa-fw.complete%22)%3Blist%5Blist.length-1%5D.scrollIntoView(%7Bbehavior%3A%20%22smooth%22%20%7D)%7D)() |
Pre-minified script:
var list = document.querySelectorAll(".fa-fw.complete");
list[list.length-1].scrollIntoView({behavior: "smooth" });
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Linux Academy course lists can get really long and the UI doesn't provide a convenient way to pick back up where you left off when you log back in. This bookmarklet is useful to get you right to the next video in your list, without having to scroll thousands of pixels down screen and visually search for the next item to watch.