cloudberrybob / MAL hide novel

// MAL Search Filter!
// version 1.2
// 2010-06-14
// Copyright (c) 2009, Bastvera <bastvera@gmail.com>
// Released under the GPL license
// http://www.gnu.org/copyleft/gpl.html

// ==UserScript==
// @name           MAL hide novel
// @include        *://myanimelist.net/anime.php*
// @include        *://myanimelist.net/manga.php*
// @include        *://myanimelist.net/topanime.php*
// @include        *://myanimelist.net/topmanga.php*
// @include        *://myanimelist.net/anime/genre/*
// @include        *://myanimelist.net/manga/genre/*
// @include        *://myanimelist.net/anime/producer/*
// @include        *://myanimelist.net/anime/season*
// @include        *://myanimelist.net/manga/magazine/*
// @exclude        *://myanimelist.net/anime.php
// @exclude        *://myanimelist.net/manga.php
// @exclude        *://myanimelist.net/anime.php?id=*
// @exclude        *://myanimelist.net/manga.php?id=*
// @license MIT
// @version        1.4.1
// @author         Bastvera <bastvera@gmail.com>, Cpt_mathix <fixed script>
// @updateURL https://openuserjs.org/meta/cloudberrybob/MAL_hide_novel.meta.js
// @downloadURL https://openuserjs.org/install/cloudberrybob/MAL_hide_novel.user.js
// @copyright 2023, cloudberrybob (https://openuserjs.org/users/cloudberrybob)
// @license MIT
// ==/UserScript==



	//Anime list entries search
	var elements = document.evaluate(
		"//tr[contains(@class, 'ranking-list') and descendant::div[contains(@class, 'information') and contains(@class, 'di-ib') and contains(@class, 'mt4') and contains(text(),'Novel')]]",
		document,
		null,
		XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
		null);

        for (var i = 0; i < elements.snapshotLength; i++) {
            var element = elements.snapshotItem(i);
            element.style.display="none";
        }