Skip to content

Commit

Permalink
📦 NEW: [tvmaze][torrents] Add BTN
Browse files Browse the repository at this point in the history
  • Loading branch information
vBm committed Sep 24, 2022
1 parent 4393d9e commit bd54e22
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion torrents.tvmaze.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// @supportURL https://github.com/vBm/snippets/issues
// @match http://www.tvmaze.com/shows/*
// @match https://www.tvmaze.com/shows/*
// @version 0.9.0
// @version 1.0.0
// @date 09/24/2022
// @grant none
// ==/UserScript==
Expand Down Expand Up @@ -46,6 +46,17 @@ async function getShows() {
).prepend(
$('<i class="fa fa-arrow-circle-down"></i>')
)
).append(
$('<span>').attr({
class: 'torrent',
target: '_blank',
}).text(' BTN ').click(
() => {
window.open(`https://broadcasthe.net/torrents.php?action=advanced&imdb=${data.externals.imdb}/`);
}
).prepend(
$('<i class="fa fa-arrow-circle-down"></i>')
)
)
);

Expand Down

0 comments on commit bd54e22

Please sign in to comment.