Greasy Fork is available in English.

Better TorrentGalaxyX TGX search - search by size, descending

Improve pornolab.net quick search form so it always defaults to searching by size in descending order; fix captcha bug - 2024-02-14, 18:17:39

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name        Better TorrentGalaxyX TGX search - search by size, descending
// @namespace   Violentmonkey Scripts
// @match       *://torrentgalaxy.to/*
// @grant       none
// @version     1.2
// @author      -
// @description Improve pornolab.net quick search form so it always defaults to searching by size in descending order; fix captcha bug - 2024-02-14, 18:17:39
// ==/UserScript==

loc = document.location.toLocaleString();
if(loc.includes("&")) {
  // TGX have a bug that makes you go to a URL that's htmlencoded after you enter the captcha.
  newLoc = loc.replaceAll("&", "&");
  window.location.replace(newLoc);

} else {

$("form#searchbar").ready(function () {
  // improvements to quick search form
  $("form#searchbar").append("<input type='hidden' name='sort' value='size' />"); // sort by size
  $("form#searchbar").append("<input type='hidden' name='order' value='desc' />"); // sort descending
})

$("div#intblockslide form").ready(function () {
  // improvements to quick search form
  $("div#intblockslide form").append("<input type='hidden' name='sort' value='size' />"); // sort by size
  $("div#intblockslide form").append("<input type='hidden' name='order' value='desc' />"); // sort descending
})



} // else from the &amp; bug fix branch