Skip to content

Instantly share code, notes, and snippets.

@wlerin

wlerin/NOZONE.js Secret

Last active June 20, 2019 21:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wlerin/395648eb1fcb91442e67d91a13f96e0b to your computer and use it in GitHub Desktop.
Save wlerin/395648eb1fcb91442e67d91a13f96e0b to your computer and use it in GitHub Desktop.
Hide IZONE torrents in a!o display
// ==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