// ==UserScript==
// @name RARBG Advanced Filters [BETA]
// @namespace http://tampermonkey.net/
// @version 1.20
// @description Additional quality of life filters: - Show or hide category icons; - Show or hide torrent thumbnails; - Show or hide movie and tv filters (Removes torrents with KORSUB, 720p, and below minimum rating); - Show or hide porn
// @author Kxmode
// @match *://rarbg.to/*
// @grant none
// @require //ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
// @downloadURL none
// ==/UserScript==
$(function() {
// .PLAN:
// - Grid layout
// - Torrent category, IMDB, icons sorting
// - Hides torrents with seeders equal to or lower than 10
// - Large grid icon
// - Minimalist layout: e.g. torrent thumbnail, name, # of seeders
// - Show or hide advanced filters based on this button's event (looks like: [ << ], next to search input)
// - Filter counter
// - Category specific filters (e.g. genre for Music; torrent group for Games; and so forth)
// Default Values
showhideadvsearch('show');
var showIcon;
var showTorrentThumbnail; // TODO: child of showIcon (=true)
var showMoviesTVFilters;
var showPorn;
var minRating;
function ToggleFilter(target, data, bool)
{
var targetID = target.replace("#","");
if (bool) {
$(target).find("i").removeClass("fa-eye-slash").addClass("fa-eye");
$(target).removeClass("disabled");
$(target).attr(data, "true");
window.localStorage.setItem(targetID, true);
}
else
{
$(target).find("i").removeClass("fa-eye").addClass("fa-eye-slash");
$(target).addClass("disabled");
$(target).attr(data, "false");
window.localStorage.setItem(targetID, false);
}
}
$("#searchTorrent").parent().addClass("new-search");
// Removes extra space between Recommended torrents and search bar (Unsure what they're for)
$("#searchTorrent").parent().parent().find("div:nth-of-type(2)").remove();
for(var i = 1; i <= 4; i++)
{
$("#searchTorrent").parent().parent().find("br:nth-of-type(1)").remove();
}
$("head").append( '');
$("head").append( "');
var AdvancedFiltersHTML = '
\n' +
'
\n' +
'
Category Icons
\n' +
'
Torrent Images
\n' + // Eventually make this a child of Show Thumbnails
'