Novel Updates Filter

Filters table rows based on origin

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği yüklemek için Tampermonkey gibi bir uzantı yüklemeniz gerekir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

Bu stili yüklemek için Stylus gibi bir uzantı yüklemeniz gerekir.

Bu stili yüklemek için Stylus gibi bir uzantı kurmanız gerekir.

Bu stili yükleyebilmek için Stylus gibi bir uzantı yüklemeniz gerekir.

Bu stili yüklemek için bir kullanıcı stili yöneticisi uzantısı yüklemeniz gerekir.

Bu stili yüklemek için bir kullanıcı stili yöneticisi uzantısı kurmanız gerekir.

Bu stili yükleyebilmek için bir kullanıcı stili yöneticisi uzantısı yüklemeniz gerekir.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         Novel Updates Filter
// @namespace    https://www.zerpr.net/
// @version      3
// @description  Filters table rows based on origin
// @author       Zerpr
// @match        *://*.novelupdates.com/*
// @require     http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js
// @require     https://greatest.deepsurf.us/scripts/31940-waitforkeyelements/code/waitForKeyElements.js?version=209282
// @grant       GM_addStyle
// ==/UserScript==
//referenced https://stackoverflow.com/questions/31758115/how-to-hide-table-rows-containing-certain-keywords
//Usage: Must be logged into Novel Updates and "Enable Origin Tagging" option (either one) selected in your profile settings


//Add keywords to filter out in novel titles, such as the origin tag
//escape brackets using double backward-slash: \\
var keywords = [
    "\\[KR\\]",
    "\\[CN\\]",
    "\\[FIL\\]",
    "\\[MY\\]"
];

//table class used for novels table
var tableClass = ".tablesorter";

//Allows for use of multiple keywords
var keyW_Regex = new RegExp (keywords.join('|'));


waitForKeyElements (
    tableClass+" td:nth-of-type(1)", hideTargetedRowAsNeeded
);

function hideTargetedRowAsNeeded (jNode) {
    if (keyW_Regex.test (jNode.text () ) ) {
        jNode.parent ().hide ();
    }
}