• esc4p1st a dit :...
    • Event Moderator
    • 14 avr. 2008, 22h31m

    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


    Modifié par esc4p1st le 21 jui. 2008, 14h24m
    • Lowest a dit :...
    • Utilisateur
    • 15 avr. 2008, 19h42m
    Wow that's a really cool script! Awesome how you can move it about too. Nice!

    • spacefish a dit :...
    • Utilisateur
    • 16 avr. 2008, 9h18m
    Thanks! Will get this added soon. :)

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

    • spacefish a dit :...
    • Utilisateur
    • 23 avr. 2008, 8h24m
    Finally added to the overview. Busy, whew! Thanks for the script. :)

    • _Tarkus_ a dit :...
    • Utilisateur
    • 25 avr. 2008, 1h52m
    This is one of the best scripts ever written!

    Thanks!

    • spacefish a dit :...
    • Utilisateur
    • 26 avr. 2008, 5h41m
    Totally agreed. :)

    • Elan11 a dit :...
    • Utilisateur
    • 9 mai 2008, 15h58m
    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 a dit :...
    • Event Moderator
    • 10 mai 2008, 12h28m
    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 a dit :...
    • Event Moderator
    • 21 jui. 2008, 14h34m

    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 a dit :...
    • Utilisateur
    • 21 jui. 2008, 15h07m
    Awesome! Very nicely done. I'll add this soon, thanks. :)

    • maz35 a dit :...
    • Abonné
    • 21 jui. 2008, 15h10m
    great work on the update, looks great!

    • RoBz88 a dit :...
    • Utilisateur
    • 21 jui. 2008, 15h38m
    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_ a dit :...
    • Utilisateur
    • 21 jui. 2008, 15h47m
    Thanks for the update!

    • der_Moep a dit :...
    • Utilisateur
    • 22 jui. 2008, 17h25m
    wow - this one rocks :-)

    • spacefish a dit :...
    • Utilisateur
    • 24 jui. 2008, 17h52m
    Doh. I totally forgot to release this! I'll add this one tomorrow. Sorry about that esc4p1st and thanks for reminding me. :)

    • spacefish a dit :...
    • Utilisateur
    • 25 jui. 2008, 7h32m
    This is added now. Sorry again!

  • This script freaking ROCKS!!!

    • Picnick a dit :...
    • Utilisateur
    • 28 jui. 2008, 5h35m
    This script is indeed brilliant. Now for something that removes the activity feed from track pages? :)

    • spacefish a dit :...
    • Utilisateur
    • 28 jui. 2008, 7h11m
    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 a dit :...
    • Utilisateur
    • 28 jui. 2008, 8h53m

    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 a dit :...
    • Utilisateur
    • 28 jui. 2008, 10h34m
    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 a dit :...
    • Abonné
    • 11 août 2008, 2h50m
    Lyrics script truncates lyrics at 4096 characters, bug? Example: Crazy Rap.

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

    • Elan11 a dit :...
    • Utilisateur
    • 11 sept. 2008, 9h09m
    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
Les utilisateurs anonymes ne peuvent pas poster de messages. Merci de vous connecter ou de créer un compte pour pouvoir intervenir dans les forums.