magicplayer.addHandler("seedpeer", function(features) { GM_log("start seedpeer: features=" + JSON.stringify(features)); magicplayer.loadPackage("ts-white-screen"); var $ = TorrentStream.jQuery; function canEmbed() { return true; } if(canEmbed()) { $('a[href^="/download/"]').each(function(e) { var url = $(this).attr('href'); var cat = $('#subtext').html(); if(!/browse.html#(1|6|3|2)(\D|$)/.test(cat)) { return true; } if(/rar/i.test(url)) { return true; } $div = $('
'); $a = $('').click(function(e) { e.preventDefault(); TorrentStream.Utils.showPopupPlayer({ dataType: 'torrentUrl', data: "http://www.seedpeer.me"+url, downloadTorrent: true, crossDomainDownload: false, useTsButton: true }); }); $button = $(' '); $span = $('P2P Online'); $a.append($button).append($span); $divInner = $('