Greasy Fork

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-04-09 提交的版本。查看 最新版本

// ==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   hebiotaku
// @icon        https://kissanime.to/Content/images/favicon.ico
// @match       *://kissanime.com/*
// @match       *://kisscartoon.me/*
// @match       *://kissanime.to/*
// @match       *://kissasian.com/*
// @require     https://greasyfork.org/scripts/4900-kissanime-anti-adblock-blocker/code/KissAnime%20Anti-Adblock%20Blocker.user.js
// @version     2016.4.9
// @grant       none
// ==/UserScript==

//Removes ads on Body and removes "Hide"
//detected as adblock...sad, requires https://greasyfork.org/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 !important");

//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
$("#selectEpisode")[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();
$("div[style*='float: left; width: 85%; text-align: left']").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;}\