Greasy Fork

Greasy Fork is available in English.

Nyaa Extreme Redux

This scrip sorts searches by seeders, it also shows the description and images if those are included. Also it grays out unseeded torrents.

当前为 2015-07-19 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name        Nyaa Extreme Redux
// @namespace Original by Vietconnect with additional code by Simon1.
// @require     http://code.jquery.com/jquery-2.1.4.js
// @include     http*://*.nyaa.*/*
// @version     5.0
// @description This scrip sorts searches by seeders, it also shows the description and images if those are included. Also it grays out unseeded torrents.
// ==/UserScript==

    // default sort by seeds
    if ((window.location.href.indexOf("page=search") > -1 || window.location.href.indexOf("page") == -1) && window.location.href.indexOf("sort") == -1) {
        var thing = window.location.href.indexOf("?")>-1?'&':'?';
        window.location.replace(window.location + thing + "sort=2");
        redirecting = true;
    }

 // Main
var makeOutLinkNewTab = function() {
	$("a[href*='http://']:not([href*='"+location.hostname+"'])").attr("target","_blank");
}
makeOutLinkNewTab();

if($(".tlist tr.tlistrow").length > 0) {
	$(".tlist tr.tlistrow").after("<tr class='preview-row'><td colspan=8>loading...</td></tr>");
	$(".tlist tr.tlistrow").each(function() {
		if($(this).find(".tlistsn").text() < 2 || ($(this).find(".tlistsn").text() < 5 && $(this).find(".tlistln").text() < 10)) {
			$(this).find(".tlistname a").css("color", "#A3A2A2");
			var row = $(this).next(".preview-row").remove();
		} else {		
			var	url = $(this).find(".tlistname a").attr("href");
			var row = $(this).next(".preview-row").find("td");
			GM_xmlhttpRequest({
				method: "GET",
				url: url,
				onload: function(response) {
					row.html($(response.responseText).find(".viewdescription"));
					makeOutLinkNewTab();
							}
			});
		}
	});
}