KissAnime.ru Basic UI

Removes every distraction when watching an anime, leaving only the episode list and next episode button

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name KissAnime.ru Basic UI
// @match https://kissanime.ru/Anime/*
// @version 2019.05.20
// @description Removes every distraction when watching an anime, leaving only the episode list and next episode button
// @grant none
// @namespace openuserjs.org/users/rokie95
// ==/UserScript==

var divRemoveList = ["btnShowComments", "navbar", "headnav", "divDownload", "divFileName", "divTextQua", "footer", "switch"];
for(var i = 0; i < divRemoveList.length; i++) {
  document.getElementById(divRemoveList[i]).outerHTML = "";
}
document.getElementsByTagName("h3")[0].outerHTML = "";
document.getElementsByTagName("a")[0].outerHTML = "";
for(var i = 0; i < document.getElementsByTagName("a").length; i++) {
  if(!document.getElementsByTagName("a")[i].href.includes("https://kissanime.ru/Anime/"))
    document.getElementsByTagName("a")[i].outerHTML = "";
  if(document.getElementsByTagName("a")[i].innerHTML == "[ Back to top ]") {
    document.getElementsByTagName("a")[i].outerHTML = "";
  }
}
for(var i = 0; i < document.getElementsByClassName("clear").length; i++) {
    document.getElementsByClassName("clear")[i].outerHTML = "";
}
document.querySelectorAll('link[rel="stylesheet"], style')
  .forEach(elem => elem.parentNode.removeChild(elem));
for(var i in document.getElementsByTagName("div")) {
  try {
    if(document.getElementsByTagName("div")[i].attributes.style.nodeValue == "font-size: 15px; width: 854px; display: inline-block;") {
      document.getElementsByTagName("div")[i].outerHTML = "";
      i++;
    }
    if(document.getElementsByTagName("div")[i].attributes.style.nodeValue == "text-align: center; height: 100px; padding-top: 10px") {
      document.getElementsByTagName("div")[i].outerHTML = "";
      i++;
    }
  }catch{}
}