• esc4p1st schrieb...
    • Event Moderator
    • 14. Apr. 2008, 22:31

    Lyrics

    I have written a script that adds a panel with song lyrics to Last.fm track pages. The lyrics are retrieved from LyricWiki.org.

    View at UserScripts

    Features:
    - Configurable positioning of the panel
    - Collapsing/expanding of the panel
    - Delayed loading of lyrics when collapsed


    Bearbeitet von esc4p1st am 21. Jul. 2008, 14:24
    • Lowest schrieb...
    • Benutzer
    • 15. Apr. 2008, 19:42
    Wow that's a really cool script! Awesome how you can move it about too. Nice!

    • spacefish schrieb...
    • Benutzer
    • 16. Apr. 2008, 9:18
    Thanks! Will get this added soon. :)

    • esc4p1st schrieb...
    • Event Moderator
    • 17. Apr. 2008, 14:21
    I factored out the panel positioning to a separate object, in case any other track page scripts has any use for it.

    • spacefish schrieb...
    • Benutzer
    • 23. Apr. 2008, 8:24
    Finally added to the overview. Busy, whew! Thanks for the script. :)

    • _Tarkus_ schrieb...
    • Benutzer
    • 25. Apr. 2008, 1:52
    This is one of the best scripts ever written!

    Thanks!

    • spacefish schrieb...
    • Benutzer
    • 26. Apr. 2008, 5:41
    Totally agreed. :)

    • Elan11 schrieb...
    • Benutzer
    • 9. Mai. 2008, 15:58
    very nice! well done

    I wonder if this can be retrofitted for a more metallic use.. (searching metal-archives and stuff)

    We rode on the winds of the Rising Storm
    We ran to the sounds of the thunder
    We danced among the lightning bolts
    And tore the world asunder
    • esc4p1st schrieb...
    • Event Moderator
    • 10. Mai. 2008, 12:28
    You could easily modify the loadContent and handleResponse functions to retrieve the lyrics from another location, or you could just add the lyrics to LyricWiki.

    • esc4p1st schrieb...
    • Event Moderator
    • 21. Jul. 2008, 14:34

    An updated version for the new site

    The script now works with the new version of Last.fm, and I have updated the screenshot to reflect the new look.

    For consistency with the rest of the site, I moved the controls for collapsing and moving the lyrics panel to a drop-down menu. Fellow developers may be interested to know that both the menu and the panel positioner are separate classes, for you to be able to reuse them more easily.

    However, the menu has a bug that I haven't been able to correct: any part of it that outgrows its column is displayed behind other elements. The problem is barely noticeable in this script, since I kept the names of menu items short, but other script-writers may not be able to. I've experimented with the z-index, overflow and display properties of the menu list, but haven't had any success with it yet. So if anyone knows how to resolve this issue, please let me know.

    • spacefish schrieb...
    • Benutzer
    • 21. Jul. 2008, 15:07
    Awesome! Very nicely done. I'll add this soon, thanks. :)

    • maz35 schrieb...
    • Abonnent
    • 21. Jul. 2008, 15:10
    great work on the update, looks great!

    • RoBz88 schrieb...
    • Benutzer
    • 21. Jul. 2008, 15:38
    Great Job :) Looks great.

    “I didn’t mean to kill nobody,I just meant to shoot the sonofabitch in the head. Him dying was between him and the Lord.” - R.L. Burnside
    • _Tarkus_ schrieb...
    • Benutzer
    • 21. Jul. 2008, 15:47
    Thanks for the update!

    • der_Moep schrieb...
    • Benutzer
    • 22. Jul. 2008, 17:25
    wow - this one rocks :-)

    • spacefish schrieb...
    • Benutzer
    • 24. Jul. 2008, 17:52
    Doh. I totally forgot to release this! I'll add this one tomorrow. Sorry about that esc4p1st and thanks for reminding me. :)

    • spacefish schrieb...
    • Benutzer
    • 25. Jul. 2008, 7:32
    This is added now. Sorry again!

  • This script freaking ROCKS!!!

    • Picnick schrieb...
    • Benutzer
    • 28. Jul. 2008, 5:35
    This script is indeed brilliant. Now for something that removes the activity feed from track pages? :)

    • spacefish schrieb...
    • Benutzer
    • 28. Jul. 2008, 7:11
    Picnick said:
    This script is indeed brilliant. Now for something that removes the activity feed from track pages? :)

    Haven't you installed one of the update notification scripts? I just announced Hide Activity Box a day or so ago. Get it from the overview.

    • Picnick schrieb...
    • Benutzer
    • 28. Jul. 2008, 8:53

    Yes but no but yes but no.

    1. Hide Activity Box only works on profile pages, not track or artist pages.

    2. Hide Activity Box doesn't actually hide the activity box, it just removes the information from it. The box itself is still there.

    3. Hide Activity Box adds Hide / Show-buttons (or in one case, a Hide /%nbsp; Show-button) to stuff I have no interest in hiding.

    So yes, I did get it. It's a nifty script, but it's not what I'm looking for.

    • spacefish schrieb...
    • Benutzer
    • 28. Jul. 2008, 10:34
    You might want to post in the script's thread and talk to snyde1 about what you'd like it to do. Obviously, this isn't the thread. ;)

    • Bloopy schrieb...
    • Abonnent
    • 11. Aug. 2008, 2:50
    Lyrics script truncates lyrics at 4096 characters, bug? Example: Crazy Rap.

    It's Halloween all year round over here: Chronic Halloween Syndrome
    • esc4p1st schrieb...
    • Event Moderator
    • 11. Aug. 2008, 8:05
    Yes. JavaScript's DOMParser apparently splits text into nodes of 4096 characters each. I've updated the script with the required additional line.

    • Elan11 schrieb...
    • Benutzer
    • 11. Sep. 2008, 9:09
    am I blind, or is this not working anymore?

    We rode on the winds of the Rising Storm
    We ran to the sounds of the thunder
    We danced among the lightning bolts
    And tore the world asunder
Anonyme Benutzer dürfen keine Beiträge schreiben. Bitte log dich ein oder registriere dich, um Beiträge in den Foren schreiben zu können.