// ==UserScript== // @name Nyaa Extreme Redux // @namespace Original by Vietconnect with additional code by ssimon98 // @require http://code.jquery.com/jquery-2.1.1.js // @include http*://*.nyaa.*/* // @version 3.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. // @downloadURL none // ==/UserScript== // Append global style var globalstyle = document.createElement('link'); globalstyle.rel = 'stylesheet'; globalstyle.type = 'text/css'; globalstyle.href = 'https://dl.dropboxusercontent.com/u/161626803/Nyaa.css'; document.getElementsByTagName('head')[0].appendChild(globalstyle); // 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; } // Remove title prefix document.title = document.title.replace('NyaaTorrents >> ', '') // 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("