This is a simple proposal to fix issue #10.
The current lyrics view is injected into the DOM as the first child of the DOM element indicated by selector
LYRIC_LOCATION_SELECTOR
defined in constants.js
. The selector is currently set to the top of the suggested videos.
A simple and aesthetically pleasing solution would be to put the lyrics above the playlist. Showing at the same width. Much as it is when the song playing is not in a playlist.
Luckily the playlist is embedded in the same DOM element that the suggested videos is in. So, the fix is simply to
change the selector to the parent element whose id is simply #secondary-inner
. This conveniently also puts other
things that are rendered on the side under the lyrics.
The main video page of youtube is made of two columns whose ids are #primary
and #secondary
. The primary column
Can you make the extension of the gist
md
? Yeah this seems like a easy change although I would liked some more detail about the change possibly about the hierarchy of the DOM nodes in the page.