Greasemonkeys » Discussions

Script: Last.fm torrent links

 
    • [Deleted user] said...
    • User
    • 28 May 2007, 19:53
    brilliant script!, Thanks a bunch.

  • cool script...I edited it so that it only lists the first 20 torrents because artists with relatively generic names, like The M's, have rediculously long lists that have nothing to do with the artist

    • rubzn said...
    • User
    • 30 May 2007, 06:58
    what about narrowing search only to music torrents?
    and the idea of showing only first X items is also cool

    • wdaltec said...
    • User
    • 3 Jun 2007, 02:44
    I was considering adding a limit, but I decided against it in the end. For the most part, bands have reasonable distinctive names.

    I've changed the source at userscripts to only grab torrents from the music category. Uninstall first guys!

    • LeeFH said...
    • User
    • 7 Jun 2007, 13:57
    oops i'm having a problem installing the most recent version. this is the error message greasemonkey gives me right after i click on install:



    i hope there is a way to resolve this, because this script is among my top favs.:)
    thank you!

  • The workaround is here.

    There is a bug in the current version of Greasemonkey which I talk about in that thread. Since this is not directly related to this script, please direct any further discussion there.

    • LeeFH said...
    • User
    • 12 Jun 2007, 22:44
    thank you for clearing this out. i'm much more reassured now!:)

    • monweb said...
    • User
    • 27 Jun 2007, 22:11

    Doesn't work now

    Hello, the script doesn't work for me now. Is it possible that mininova.org has been changed his source code?

    I think that mininova construct the table of result with the following javascript. Is it possible to rebuild the script?

    <script type="text/javascript"><!--
    var __table = document.getElementsByTagName('table');

    if(__table.length != 0) {
    __tableRows = __table[0].tBodies[0].childNodes;


    // Find the number of the "Name" column
    var nameCol;

    for(var i = 0; i < __tableRows[0].childNodes.length; i++) {
    if(__tableRows[0].childNodes.innerHTML.indexOf('Name') != -1)
    nameCol = i;
    }

    if(nameCol != null) {

    for (var i = 1; i < __tableRows.length; i++) {
    if (__tableRows.childNodes.length > 1) {
    var __currentTD = __tableRows.childNodes[nameCol].childNodes;
    var __currentLink = __currentTD[__currentTD.length-1];

    var html = __currentLink.innerHTML.replace(/(muse5)/ig, '<span class="highlight">$1</span>');
    __currentLink.innerHTML = html;
    }
    }
    }
    }
    //--></script>

    • wdaltec said...
    • User
    • 10 Jul 2007, 03:52

    Fixed

    Fixed again, mininova slightly changed the structure of the results. Same URL at userscripts. Uninstall the old version first.

    Next time it dies, please private message me, as I don't check this thread very often.

    • Bepus said...
    • User
    • 22 Jan 2008, 15:38

    Can anyone make this works for lastfm.es?

    I have already included the adresses http://www.lastfm.es/music/* and http://lastfm.es/music/*

    Bé de Lô
    • LeeFH said...
    • User
    • 21 Jul 2008, 22:54
    this was such a useful script? i hope wdaltec will update it.:)

    • marshee said...
    • User
    • 23 Jul 2008, 16:27
    LeeFH said:
    this was such a useful script? i hope wdaltec will update it.:)

    me too

Anonymous users may not post messages. Please log in or create an account to post in the forums.