FL Sorter

Sort items in FL by the number of snached times.

当前为 2019-11-17 提交的版本,查看 最新版本

// ==UserScript==
// @name       FL Sorter
// @namespace  filelist.ro sort by snached 
// @version    1.1
// @description Sort items in FL by the number of snached times.
// @include     *filelist.ro/*
// @copyright   2019, SyShade
// @require     https://code.jquery.com/jquery-3.4.1.min.js
// ==/UserScript==

$(".torrentrow div:nth-child(8)").each(function () {
    var th = $(this).parent();
    var vl = $(this).text().slice(0, -5);
    var vlint = parseInt(vl);
    vlint = vl.replace(/,/g, "");
    $(this).parent().attr("data-value", vlint);
});
var rows = $('.torrentrow [data-value]');
$('.visitedlinks').append("<div class='table'>");
$('.table').append(rows);

$('[data-value]').sort(function (a, b) {
    return $(b).data('value') - $(a).data('value');
}).appendTo('.table');

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址