Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

YouTube Lyrics

Adds a lyrics box to the YouTube sidebar under the video informations box. It can search in nine different lyrics sites and it shows also all the results in a drop down.

Changes Log

  • 29.02.2008 ver. 2.00

    • New version, fully rewritten
    • Added three lyrics sites: lyricwiki.org, lyrics.astraweb.com and metrolyrics.com
  • 01.03.2008 ver. 2.01

    • @Include changed to *.youtube.com/watch?* (thanks to mcm69)
  • 03.03.2008 ver. 2.02

    • Added two more lyrics sites: musica.com and get-lyric.net
  • 05.03.2008 ver. 2.03

    • Added a textbox with the key words
    • Added an automatic new version detector
  • 18.03.2008 ver. 2.04

    • @Include changed to *youtube.com/watch?* (thanks to klaatu00001)
  • 22.03.2008 ver. 2.05

    • Resolved conflict with Yousable TubeFix (thanks to tramabruta)
    • Added a menu command to check for update
    • Added two new lyrics sites: lyricsdownload.com and lyricsondemand.com
  • 25.03.2008 ver. 2.06

    • Fixed auto update due layout change of the GM script page
  • 31.03.2008 ver. 2.07

    • Removed all the calls to unsafeWindow
    • Fixed parsing of lyricwiky.org
    • Some others minor enhancements and bugs fixing
  • 12.04.2008 ver. 2.08

    • Adapted to the youtube changes
    • Added to new lyrics sites: sweetslyrics.com and songmeanings.net
    • Some others minor enhancements and bugs fixing
  • 21.04.2008 ver. 2.09

    • Some minor bug corrections
    • Expanded the version with a revision counter

    Bugs/Errors Report

    Please if this script doesn't work just don't say "it isn't working" because I can't imagine why it doesn't work. If this script isn't working for you or you found some errors/bugs do the following things:
    • 1st: add the location/link/url where this script should work but it doesn't
    • 2nd: describe what should happen but it doesn't
    • 3rd: look in the error console for more informations: Menu-->Tools-->Error Console-->Errors
    • 4th: list all the others running scripts: Right click on GreaseMonkey Icon in the lower right corner of Firefox
    • 5th: report also Firefox version and Greasemonkey version
    Thank you




Apr 15, 2008
Arias Scriptwright

never mind, I must have missed the update !


 
Apr 15, 2008
Arias Scriptwright

I got some problem after youtube upgrade, does the script still work proper ?


 
Apr 14, 2008
Aquilax Script's author

Thanks gantt but unfortunately not all the music video are under the music category, perhaps in the future I'll add a configuration panel where you can choose it as option.

U2 One, category: News & Politics
http://www.youtube.com/watch?v=JFWPeVfWB9o


 
Apr 13, 2008
gantt Scriptwright

Here's an idea: show the lyrics box only if the video is in the Music category or expand the box for music videos.


 
Apr 12, 2008
Hiromacu Scriptwright

It works! :) Nice script! Thanx...


 
Apr 12, 2008
Aquilax Script's author

@Hiromacu thanks I have fixed the bug, youtube has changed a little bit its html.


 
Apr 11, 2008
Hiromacu Scriptwright

1st: location:
http://www.youtube.com/watch?v=qQwCCm-H-sU&feat...

2nd: describe: It would be necessary to see the lyrics.

3rd: message on Error Console:
Error: div0 has no properties
Source File: file:///C:/Documents%20and%20Settings/Hiromacu/Application%20Data/Mozilla/Firefox/Profiles/onuldpqt.Hiromacu/gm_scripts/youtubelyrics.user.js
Line: 23

4th: running scripts:
- Show Password ondblclick
- Virtual Keyboard Interface
- Textareation
- Textareation
- Change IMDB Links' Text to the Movies' Title
- YousableTubeFix
- Pagerization

5th: versions:
- Firefox 2.0.0.13 (2008031114)
- Greasemonkey 0.7.20080121.0


 
Apr 11, 2008
Hiromacu Scriptwright

Hi Aquilax!

I can't see any lyrics! Even if I disable YousableTubeFix script.


 
Mar 26, 2008
Aquilax Script's author

Thanks Mindeye, now I have found them, but I think that there are already enough scripts to "clean up" youtube, this script adds only lyrics and does nothing else.


 
Mar 25, 2008
Mindeye Scriptwright

Aquilax:

The "channelBrandDiv" and "channelBrandCap" ids appears in special accounts users' videos, like this one: http://www.youtube.com/user/universalmusicgroup


 
Mar 22, 2008
tramabruta User

wow! it's perfect now! glad you fix it thank you!!


 
Mar 22, 2008
Aquilax Script's author

@Al N Thank you, I coudn't find any div with the ids "channelBrandDiv" or "channelBrandCap", I suppose these are divs that appear only if you are registered and logged in, it can be seem strange but I'm never signed up for a youtube account and for the moment I don't feel the need to do it.

@FF3B4tester Thank you, I'm happy that it works also with the new FF, I haven't it tested it yet. I have no problem to add others lyrics sites but they must have some properties, like a search box for author and song title together because I use the video title that normally contains both to search the lyrics. Unfortunately on SongsMeanings you can only search for artist or for song title but not for both.


 
Mar 22, 2008
FF3B4tester User

Great... Works with FF3 Beta 4 (I use Portable)

You might wanna add http://www.songmeanings.net/ to it as well?
Sometimes on that site there is comments below, that explains the text/song, take fx. http://www.songmeanings.net/lyric.php?lid=35308...

I realize though, that we could reach a point where to many search engines is available..


 
Mar 22, 2008
Al N Scriptwright

Good idea. Very nice.

I found it works better without the big youtube box ad pushing the lyrics down off the screen.. just a few lines of greasemonkey fixed that :)

var adElem = document.getElementById("channelBrandDiv");

adElem.parentNode.removeChild(adElem);

adElem = document.getElementById("channelBrandCap");

adElem.parentNode.removeChild(adElem);


 
Mar 22, 2008
Aquilax Script's author

Thanks tramabruta, I was able to replicate the bug and solve it, now it works also with Yousable TubeFix.


 
Mar 22, 2008
tramabruta User

here is a picture of my firefox with the bug:

http://rapidshare.com/files/101415190/firefox_l...

hope it help


 
Mar 22, 2008
tramabruta User

i was thinking maybe my firefox configuration is messed up i installed some add-ons and tried some adjusts to make it faster...just don't asked what adjust is that...:)


 
Mar 22, 2008
tramabruta User

lyric panel created:true

first dialog box:
style:null, class:wsWrapper

second one:

save<select><option>lyricwiki.org</option><option>lyrics.astraweb.com</option><option>metrolyrics.com</option><option>musica.com</option><option>get-lyric.net</option></select>


 
Mar 22, 2008
Aquilax Script's author

Auch, it is trunked, once again:

javascript: var div1=document.getElementById("lyricPanel"); alert("Lyric exists? "+(div1!=null)); prompt("","style:"+div1.getAttribute("style")+", class:"+div1.getAttribute("class")); prompt("",div1.innerHTML.replace(/>/gmi,"&gt;").replace(/</gmi,"&lt;")); alert("ok");


 
Mar 22, 2008
Aquilax Script's author

After talking a little bit in the forum here the javascript string:


alert("Lyric exists? "+(div1!=null)); prompt("","style:"+div1.getAttribute("style")+", class:"+div1.getAttribute("class")); prompt("",div1.innerHTML.replace(/>/gmi,"&gt;").replace(/</gmi,"&lt;")); alert("ok");


 
Mar 21, 2008
kuss User

seems to be working fine for me, thanks!


 
Mar 21, 2008
Aquilax Script's author

No still doesn't work, I can't post it, sorry.


 
Mar 21, 2008
Aquilax Script's author

Sometimes I forget that there is also the tag


javascript: var div1=document.getElementById("lyricPanel"); alert("Lyric exists? "+(div1!=null)); prompt("","style:"+div1.getAttribute("style")+", class:"+div1.getAttribute("class")); prompt("",div1.innerHTML.replace(/</gmi>/gmi,">")); alert("ok");


 
Mar 21, 2008
Aquilax Script's author

No, it doesn't work, this "forum" doesn't accept some html encoding and I can't post the javascript string.

javascript: var div1=document.getElementById("lyricPanel"); alert("Lyric exists? "+(div1!=null)); prompt("","style:"+div1.getAttribute("style")+", class:"+div1.getAttribute("class")); prompt("",div1.innerHTML.replace(/</gmi>/gmi,"& gt;")); alert("ok");


 
Mar 21, 2008
Aquilax Script's author

@tramabruta Nope, I have used your configuration but Youtbue lyrics is still working.

Last try: Can you take it back when Youtube Lyrics doesn't work and copy paste this javascript string in the location bar and press enter?

javascript: var div1=document.getElementById("lyricPanel"); alert("Lyric exists? "+(div1!=null)); prompt("","style:"+div1.getAttribute("style")+", class:"+div1.getAttribute("class")); prompt("",div1.innerHTML.replace(/</gmi>/gmi,">")); alert("ok");

It should check if the lyric panel has been created and it shows it in an alert window (true/false), than it shows up two dialogs, one after the other, where the input field is already filled with some text.
The first dialog shows the style and class attribute of the lyric panel, the second dialog show the already encoded inner HTML of the lyric panel, yes encoded because I'm asking you to copy paste the two texts there, I hope so to find something.

Thanks


You could comment on this script if you were logged in.