node / whatcd gazelle hide categories

// ==UserScript==
// @name        whatcd gazelle hide categories
// @include     /https?://www\.empornium\.(me|sx)/torrents\.php.*/
// @include     /https?://www\.empornium\.(me|sx)/user\.php.*/
// @include     /https?://femdomcult\.org/torrents\.php.*/
// @include     /https?://femdomcult\.org/user\.php.*/
// @include     /https?://www\.cheggit\.me/torrents\.php.*/
// @include     /https?://www\.cheggit\.me/user\.php.*/
// @version     2
// @require     http://code.jquery.com/jquery-2.1.1.js
// @grant       none
// ==/UserScript==

"use strict";

this.jQuery = jQuery.noConflict(true);

function hideCategories(categories, completely_hide) {
    jQuery('.torrent_table tr.torrent').each(function() {
        var $this = jQuery(this);
        var category = jQuery('div[title]', $this).attr('title');
        if (categories.indexOf(category) != -1) {
            if (completely_hide) {
                $this.hide();
            }
            else {
                $this.css({
                    'filter': 'grayscale(1) contrast(.1) brightness(1.8)',
                    '-webkit-filter': 'grayscale(1) contrast(.1) brightness(1.8)'
                });
            }
        }
    });
}

jQuery(document).ready(function() {
    var categories = ['gay', 'shemale', 'transsexual', 'scat', 'bbw', 'pregnant'];
    var completely_hide = true;
    hideCategories(categories, completely_hide);
});