KissAnime.ru Basic UI

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

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==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{}
}