Greasy Fork

KissAnime KissCartoon KissAsian no-ads clean layout

clean up ads and prioritize vertical spacing, fork of slim headers by userscripts.org/user/swyter

目前为 2017-12-11 提交的版本。查看 最新版本

// ==UserScript==
// @name        KissAnime KissCartoon KissAsian no-ads clean layout
// @description clean up ads and prioritize vertical spacing, fork of slim headers by userscripts.org/user/swyter
// @namespace   hebiohime
// @match       *://kissanime.ru/*
// @match       *://kisscartoon.com/*
// @match       *://kissasian.com/*
// @match       *://kissmanga.com/*
// @version     2017.31.3
// @grant       GM_addStyle
// @run-at      document-start
// ==/UserScript==

GM_addStyle(" \
\
\
/*my edits*/ \
#divTextQua, #clear1, #clear2, #clear3, #clear4, #clear5, #clear6 {height: 0px; padding-top: 0px; display: none;} #navcontainer #liRequest, #li1, #result_box + div iframe {display: none !important;} form#formSearch > div:last-child {margin-top: 0px !important; float: right;}\
.lbl {display: none!important;visibility: hidden!important;}\
#adsIfrme7 {display: none!important;visibility: hidden!important;}\
#divBookmark {display: none!important;visibility: hidden!important;}\
.clsTempMSg {display: none!important;visibility: hidden!important;}\
#selectPlayer {width: 70px!important;}\
#selectEpisode {width 200px!important; margin-bottom: 5px!important;}\
#divDownload {padding-top:5px!important;}\
.barContent {padding-top 10px!important;}\
#selectServer {margin-right:5px!important;}\
#selectPlayer {margin-right:5px!important;}\
#selectEpisode {margin-right:5px!important;}\
.bigBarContainer {margin-bottom 0px!important;}\
#switch {width: 16px!important;margin-top: 5px!important}\
#footer {display: none!important;visibility: hidden!important;}\
#liFlappy {display: none!important;visibility: hidden!important;}\
\
             #head + .clear                     \
             {                                  \
               clear: none;                     \
               height: 76px;                    \
             }                                  \
                                                \
             #head h1                           \
             {                                  \
               margin-top: 10px !important;     \
             }                                  \
                                                \
                /*slightly changed*/            \
                                                \
             #head h1 a.logo[title^=KissAnime]  \
             {                                  \
               width: 243px !important;         \
               height: 65px !important;         \
             }                                  \
             #head h1 a.logo[title*=kissmanga]  \
             {                                  \
               width: 240px !important;         \
               height: 68px !important;         \
             }                                  \
             #head h1 a.logo[title^=KissAsian]  \
             {                                  \
               height: 60px !important;         \
             }                                  \
             \
             \
             \
                                                \
             #search                            \
             {                                  \
               z-index: 2;                      \
             }                                  \
                                                \
             #search::after                     \
             {                                  \
               content: '';                     \
               position: absolute;              \
               display: inline-block;           \
                                                \
               z-index: -1;                     \
                                                \
               width: 100%;                     \
               height: 30px;                    \
                                                \
               background: #2C2C2C;             \
               border-radius: 7px 7px 0 0;      \
                                                \
               top: -10px;                      \
               left: 0;                         \
             }                                  \
                                                \
             #navcontainer ul                   \
             {                                  \
               position: absolute;              \
             }                                  \
                                                \
             #navcontainer #liRequest, #li1,    \
             #result_box + div iframe           \
             {                                  \
               display: none !important;        \
             }                                  \
                                                \
             form#formSearch > div:last-child   \
             {                                  \
               margin-top: 0 !important;        \
               float: right;                    \
             }                                  \
                                                \
             #imgSearch                         \
             {                                  \
               background: transparent;         \
             }");

if (document.domain !== 'kissmanga.com')
  return;

GM_addStyle("#head h1                           \
             {                                  \
               position: absolute;              \
               top: 10px;                       \
               border-radius: 16px;             \
               margin-left: 2px !important;     \
             }                                  \
                                                \
             #search input.text                 \
             {                                  \
               width: 134px !important;         \
             }                                  \
                                                \
             #topHolderBox                      \
             {                                  \
               height: 30px !important;         \
             }");