-
-
Save wlerin/395648eb1fcb91442e67d91a13f96e0b to your computer and use it in GitHub Desktop.
Hide IZONE torrents in a!o display
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name NOZONE | |
// @include https://aidoru-online.me/ | |
// @include https://aidoru-online.me/torrents-today.php | |
// @include https://aidoru-online.me/torrents-search.php | |
// @include https://aidoru-online.me/index.php | |
// @require https://code.jquery.com/jquery-3.3.1.slim.min.js | |
// @require https://gist.githubusercontent.com/raw/2625891/waitForKeyElements.js | |
// @version 0.1 | |
// ==/UserScript== | |
// source: https://stackoverflow.com/questions/31758115/how-to-hide-table-rows-containing-certain-keywords | |
var keywords = [ | |
"IZONE" | |
]; | |
var keyW_Regex = new RegExp (keywords.join('|'), "i"); //-- The "i" makes it case insensitive. | |
waitForKeyElements ( | |
"tr.t-row td:nth-of-type(2)", hideTargetedRowAsNeeded | |
); | |
function hideTargetedRowAsNeeded (jNode) { | |
if (keyW_Regex.test (jNode.text () ) ) { | |
jNode.parent ().remove (); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment