Would you mind to provide some interfacing so that the genius object and the useful functions can be exported to the outside and called by other userscripts?
Right now I am doing some interfacing of your script with my script.
https://greasyfork.org/en/scripts/428651-tabview-youtube
Besides, there are three things I would like to do.
If you would like to include into your script, I am fine to share it.
If not, I would just add to my script to make these features.
Point 1) modify the css styling of the floating elements to adopt the darker dark theme
I know this youtube genius lyrics userscript is quite old and now YouTube has decided to make dark mode as default.
For me I think the old css styling used is a bit ugly.
Point 2) modify the css styling within the iframe
I just use the default theme (genius theme), looks like the texts are somehow broken especially the header and footer.
I have already figured out the required css.
For other two themes, seems not maintained and already broken?
Or add my styling as a separate theme?
For this purpose, I hope there is some exported functions that I can call to set the theme or add custom theme by css in order to incorporate my userscript design.
Point 3) a more accurate way to get the song title and author
I see there is some text processing for the video title to get the actual song name and author.
Base on the latest design, I have figured out another way to do it. But I don't know how to feed the title to your script correctly.
Actually it is quite easy.
Example Video:
https://www.youtube.com/watch?v=F6SDc5uMEgs&list=PL4fGSI1pDJn5FhDrWnRp2NLzJCoPliNgT&index=11
In the latest YouTube design, the music information is captured with song title and author. just check whether these two information both appear in the video title. If both appear, then genius can highly able to get the correct and unique result.
I think this can be the first priority on top of the current method.
I already have the js code to get the song title and song author.
Regarding these three points, please let me know what do you want.
Point 1.
(Still some fine tuning for light theme colors)
Point 2.
(Still some fine tuning for light theme colors)