ghostwan / 1337x search subtitles from subscene

// ==UserScript==
// @name         1337x search subtitles from subscene
// @version      1.0
// @description  Create links to directly donwload subtitles from subscne
// @author       Ghostwan
// @include      /^.+1337x\.to/torrent.+
// @grant        none
// ==/UserScript==

function update_dl_links(){
    $(".dl_links").remove();
    target = $(".top-row");
    torrentName = target.children("strong").html();
  
    dl_div = "<div class='dl_links' style='float: left; margin-top: 0px;'>";
    dl_div += " <a class='dl_button btn-rep' href='http://subscene.com/subtitles/release?q=" + torrentName +"' style='padding:0 8px 0px 8px' target='_blank'>subtitles</a>";
    dl_div += "</div>";
    $(target).append(dl_div);    
}
update_dl_links();