Greasy Fork

Greasy Fork is available in English.

no-ads clean layout KA

slims down the page as much as possible, use part 2 to get full effect i cant figure how to require it

当前为 2016-03-29 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name        no-ads clean layout KA
// @namespace   kissanime.com/*
// @description slims down the page as much as possible, use part 2 to get full effect i cant figure how to require it
// @namespace   moisesnake
// @icon        https://kissanime.to/Content/images/favicon.ico
// @match       *://kissanime.com/*
// @match       *://kisscartoon.me/*
// @match       *://kissanime.to/*
// @match       *://kissasian.com/*
// @require     http://greasyfork.icu/scripts/4900-kissanime-anti-adblock-blocker/code/KissAnime%20Anti-Adblock%20Blocker.user.js
// @version     2016.3.29
// @grant       none
// ==/UserScript==

//Removes ads on Body and removes "Hide"
//detected as adblock...sad, requires http://greasyfork.icu/en/scripts/4900-kissanime-anti-adblock-blocker
/*
$('#adsIfrme6').remove();$("a[onclick*='#adsIfrme']").remove();
$('#adsIfrme7').remove();$("a[onclick*='#adsIfrme']").remove();
$('#adsIfrme8').remove();$("a[onclick*='#adsIfrme']").remove();
$('#adsIfrme10').remove();$("a[onclick*='#adsIfrme']").remove();
*/
$('#divFloatRight').remove();
$('#divFloatLeft').remove();
$('#gwd-image_1').remove();
$('#divAds2').remove();
$('#divAds').remove();
$('#adsIfrme3').remove();
$('#divFloatLeft').remove();
$('#adsIfrme1').remove();
$('#divFloatRight').remove();

//removes footer likes/others bar and bookmark link for space and less clutter
$(".addthis_native_toolbox").remove();
$('#footer').remove();
$('#divBookmark').remove();
$(".clsTempMSg").remove();
$(".st_fblike_hcount").remove();
$(".st_facebook_hcount").remove();
$(".st_twitter_hcount").remove();
$(".st_googleplus_hcount").remove();
$(".st_sharethis_hcount").remove();
$("a[href*='http://kisscartoon.me/Message/ReportError']").parent().remove();
$("a[href*='http://kissasian.com/Message/ReportError']").parent().remove();
$(".lbl").remove();

//a few styles
$("#selectEpisode").css("margin-bottom","10px");
$("#divDownload").css("padding-top","0px");
$("#divFileName").css("padding-top","0px");
$(".barContent").css("padding-top","10px");
$(".barContent").css("padding-bottom","5px");
//non-classed/id'd styles 
$("div[style*='height: 100px']").css("padding-top","0px");
$("div[style*='height: 100px']").css("height","55px");
$("div[style*='width: 600px']").css("padding-top","0px");
$("div[style*='width: 950px']").css("width","1000px");
$("div[style*='width: 970px']").css("width","1000px");
$("div[style*='margin: 10px 48px 10px 0']").css("margin-top","0px");

//gets rid of comments box and small link at the bottom if uncommented, just to sqeeze that last bit of space out
$("a[href*='#']").remove ();$("div[style*='height: 55px']").css("height","0px");$('#divComments').remove();
//scrolls video and eps buttons up, great for lower height monitors
$("#btnNext")[0].scrollIntoView({behavior: "smooth",block: "start"});

//moves quality selector for just a tiny bit more space
$("#selectEpisode").before($("select[id*='selectQuality']"));
$("#selectQuality").css("margin-right","10px");
$("div[style*='float: left; padding-left: 20px']").css("height","25px");
$("#switch").css("width","16px");
$("#switch").css("margin-top","5px");
$("div[style*='float: left; padding-left: 20px']").after($("#switch"));
$(function(){$("#switch").html('<img src="/Content/images/light_bulb_off.png"></img>')});
$("div[style*='font-size: 17px; width: 685px; display: inline-block;']").remove();
$("div[style*='font-size: 17px; width: 854px; display: inline-block;']").remove();
$("div[style*='font-size: 15px; width: 854px; display: inline-block;']").remove();

//hides some of the empty space divs
$(document).ready(function() {$(".clear").each(function(i) {$(this).attr('id','clear' + (i));});});$('.clear2').hide();

//CLear hint block, redundant
/*
$("div[style*='width: 839px']").remove();
$("div[style*='width: 90px']").remove();
$("div[style*='left: 34.5px']").remove();
$("div[style*='right: 34.5px']").remove();
$("div[style*='left: 0px']").remove();
$("div[style*='right: 0px']").remove();
$("div[style*='left: 50%']").remove();
$("div[style*='max-width: 642px']").remove();
*/

//couldnt set, can be set with gm_addstyle which is in part 2
//#divTextQua, #clear1, #clear2, #clear3, #clear4, #clear5, #clear6 {height: 0px; padding-top: 0px;display: none;}\