NullPhantom / GGn Download GOG torrents

// ==UserScript==
// @name         GGn Download GOG torrents
// @version      0.2
// @updateURL    https://openuserjs.org/meta/NullPhantom/GGn_Download_GOG_torrents.meta.js
// @downloadURL  https://openuserjs.org/src/scripts/NullPhantom/GGn_Download_GOG_torrents.user.js
// @description  Downloads all GOG torrents
// @author       NullPhantom
// @match        http*://*.gazellegames.net/torrents.php*gog*
// @grant        none
// ==/UserScript==

(function() {

    $('body').append('<input type="button" value="Download All GOG" id="NP">');
    $("#NP").css("position", "fixed").css("top", 0).css("left", 0);
    $('#NP').click(function(){
        $('[class^="edition_info"]').each(function() {
            var elementnp = this;
            if(this.innerHTML.indexOf('GOG ') !== -1)
            {
                setTimeout(function(){
                    window.open($(elementnp).parent('tr').next().find('a').first().attr('href'), '_blank');
                },100);
            }
        });
    });
})();