Greasy Fork

no-ads clean layout KA

Removes ads and cleans up a little, undetected as adblock 1/14/16

目前为 2016-01-14 提交的版本。查看 最新版本

// ==UserScript==
// @name        no-ads clean layout KA
// @namespace   kissanime.com/*
// @description Removes ads and cleans up a little, undetected as adblock 1/14/16
// @namespace   moisesnake
// @icon        https://kissanime.to/Content/images/favicon.ico
// @match       *://kissanime.com/*
// @match       *://kisscartoon.me/*
// @match       *://kissanime.to/*
// @match       *://kissasian.com/*
// @version     2016.1.14
// @grant       none
// ==/UserScript==

//Removes ads on Body and removes "Hide"
$('#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 ();

//a few styles
$("#centerDivVideo").css("padding","10px");
$("#divDownload").css("padding-top","0px");
$("#divFileName").css("padding-top","0px");
$(".barContent").css("padding-top","10px");
$(".barContent").css("padding-bottom","5px");
$("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");

//gets rid of comments box and small link at the bottom if un-commented, just to squeeze that last bit of space out
//yeah,there's no good comments on specific eps so forget it
//$(".bigBarContainer").css("margin-bottom","0px");$("a[href*='#']").remove ();$("div[style*='height: 55px']").css("height","0px");$('#divComments').remove();

//scroll video cleanly into view and center, its a little intrusive to me sometimes i like having the bar there... but ill leave it in you know as an option for those smart enough to go in and remove the comment
//$("#btnNext")[0].scrollIntoView({behavior: "instant", block: "start"});


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

//CLear hint block
$("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;}\