Skip to content

Commit

Permalink
📦 NEW: [tvmaze][torrents] Add TL
Browse files Browse the repository at this point in the history
  • Loading branch information
vBm committed Sep 24, 2022
1 parent ccf0777 commit 4393d9e
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions 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.8.0
// @version 0.9.0
// @date 09/24/2022
// @grant none
// ==/UserScript==
Expand All @@ -35,8 +35,19 @@ async function getShows() {
).prepend(
$('<i class="fa fa-arrow-circle-down"></i>')
)
).append(
$('<span>').attr({
class: 'torrent',
target: '_blank',
}).text(' TL ').click(
() => {
window.open(`https://www.torrentleech.org/torrents/browse/index/imdbID/${data.externals.imdb}/`);
}
).prepend(
$('<i class="fa fa-arrow-circle-down"></i>')
)
)
);
);

$('.torrent').css({
display: 'inline-block',
Expand Down

0 comments on commit 4393d9e

Please sign in to comment.