// ==UserScript== // @name v2ex回复排序 // @namespace cljnnn@gmail.com // @include http*://*v2ex.com/t/* // @description:en sort v2ex reply by star❤️ // @description:zh-CN v2ex回复按照❤️排序 // @version 1.0.0.2 // @grant none // @description sort v2ex reply by star❤️ // @downloadURL none // ==/UserScript== $("div.cell[id^='r_']").sort( function(x, y){ let vx = parseInt($(x).find("span.small").text().replace(/♥/g, "")); if (isNaN(vx)) vx = 0; let vy = parseInt($(y).find("span.small").text().replace(/♥/g, "")); if (isNaN(vy)) vy = 0; return vx <= vy; } ).appendTo($("div.box[style] + div + div.box")); //author $("strong a.dark:contains('"+$("small.gray a").text()+"')").css('color', 'blue');