From 6ba354a5b28bd9a7e088d334124058cc3cda50a9 Mon Sep 17 00:00:00 2001 From: Megure Date: Fri, 14 Apr 2017 00:02:19 +0200 Subject: [PATCH] Fix sorting of torrents Because the website changed its code, the torrent description rows were not properly associated with the torrent rows and not placed correctly to be opened below the torrent row, but instead open at the top. --- enhancedtorrentview.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/enhancedtorrentview.user.js b/enhancedtorrentview.user.js index 2e60b8b..958e8b6 100644 --- a/enhancedtorrentview.user.js +++ b/enhancedtorrentview.user.js @@ -4,7 +4,7 @@ // @namespace Megure@AnimeBytes.tv // @description Shows how much yen you would receive if you seeded torrents; shows required seeding time; allows sorting and filtering of torrent tables; dynamic loading of transfer history tables // @include http*://animebytes.tv* -// @version 1.00 +// @version 1.01 // @grant GM_getValue // @grant GM_setValue // @icon http://animebytes.tv/favicon.ico @@ -88,7 +88,7 @@ return row; } function get_corresponding_torrent_row(row) { - var anchor = row.querySelector('a[title="Download"]'); + var anchor = row.querySelector('a[title="Report"]'); if (anchor !== null) { var match = anchor.href.match(/id=(\d+)/i); if (match !== null) {