cloudberrybob / mydramalist hide added

// 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           mydramalist hide added
// @match          *://mydramalist.com/*
// @exclude        *://mydramalist.com/people/*
// @exclude        *://mydramalist.com/list/*
// @description    This script hides search results that you already have on your list
// @updateURL https://openuserjs.org/meta/cloudberrybob/mydramalist_hide_added.meta.js
// @downloadURL https://openuserjs.org/install/cloudberrybob/mydramalist_hide_added.user.js
// @version        1.4.1
// @license MIT
// @author         Bastvera <bastvera@gmail.com>, Cpt_mathix <fixed script>
// @namespace      https://greasyfork.org/users/16080
// ==/UserScript==
var css = 'div.box:has(i.fa-pencil-alt) {display: none !important; }',
    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));
}