您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
v2ex回复按照❤️排序,如果你不想花太多时间在v2ex上,但又不想错过重要信息,你可能需要这个。
当前为
// ==UserScript== // @name v2ex回复排序 // @namespace [email protected] // @include http*://*v2ex.com/t/* // @description:en sort v2ex reply by star❤️ // @description:zh-CN v2ex回复按照❤️排序,如果你不想花太多时间在v2ex上,但又不想错过重要信息,你可能需要这个。 // @version 1.0.0.6 // @description sort v2ex reply by star❤️ // ==/UserScript== //green author $("strong a.dark:contains('"+$("small.gray a").text()+"')").css('color', 'green'); //blue link //$("div.cell[id^='r_'] a[rel='nofollow']").css('color', 'blue'); $("a[rel~='nofollow']").css('color', 'blue'); let content = $("div.box[style] + div + div.box:not(#reply-box):has(div.cell)"); let hasPages = content.find("a.page_current").length!==0; let lastPageRow = hasPages ? content.find("div.cell:last") : null; content.find("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 vy - vx; } ).appendTo(content); // move the lastPageRow to the end of content if(lastPageRow){ lastPageRow.appendTo(content); }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址