Filter out Transmorpher DDS

Automatically removes the artist "Transmorpher DDS" from searches.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name           Filter out Transmorpher DDS
// @namespace      dragontamer8740
// @description    Automatically removes the artist "Transmorpher DDS" from searches.
// @version        1.1
// @include        http://g.e-hentai.org/*
// @include        http://e-hentai.org/*
// @include        http://exhentai.org/*
// @include        https://g.e-hentai.org/*
// @include        https://e-hentai.org/*
// @include        https://exhentai.org/*
// @match        http://g.e-hentai.org/*
// @match        http://e-hentai.org/*
// @match        http://exhentai.org/*
// @match        https://g.e-hentai.org/*
// @match        https://e-hentai.org/*
// @match        https://exhentai.org/*
// ==/UserScript==
if(document.querySelector('input[name="f_search"]')) // only if search bar exists on current page
{
  //puts '-artist:"transmorpher DDS"' in the search field.
  if( document.querySelector('input[name="f_search"]').value=="")
  {
    document.querySelector('input[name="f_search"]').value +="-artist:\"transmorpher DDS\" ";
  }
  //if it's already in the search field (case insensitive), don't do anything. Otherwise, add it to the end.
  else if( !(document.querySelector('input[name="f_search"]').value.toUpperCase().includes("-artist:\"transmorpher DDS\"".toUpperCase())) )
  {
    document.querySelector('input[name="f_search"]').value +=" -artist:\"transmorpher DDS\" ";
  }
}