Raw Source
cloudberrybob / MAL show only dropped

// 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 show only dropped
// @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=*
// @description    This script hides search results that you already have on your list
// @updateURL https://openuserjs.org/meta/cloudberrybob/show_only_dropped.meta.js
// @downloadURL https://openuserjs.org/install/cloudberrybob/show_only_dropped.user.js
// @license MIT
// @version        1.4.2
// @author         Bastvera <bastvera@gmail.com>, Cpt_mathix <fixed script>
// @namespace      https://greasyfork.org/users/16080
// ==/UserScript==



insertCss('tr.ranking-list:has(a.js-anime-watch-status:not(.dropped)) {display: none !important; }')
insertCss('div.seasonal-anime:has(a.js-anime-watch-status:not(.dropped)) {display: none !important; }')
insertCss('tr.ranking-list:has(a.js-manga-watch-status:not(.dropped)) {display: none !important; }')
insertCss('div.seasonal-anime:has(a.js-manga-watch-status:not(.dropped)) {display: none !important; }')




function insertCss(css){
   var head = document.head || document.getElementsByTagName('head')[0],
    style = document.createElement('style');

head.appendChild(style);

style.type = 'text/css';
if (style.styleSheet){
  // This is required for IE8 and below.
  style.styleSheet.cssText = css;
} else {
  style.appendChild(document.createTextNode(css));
}
}