Greasy Fork

no-ads clean layout KA

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

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

// ==UserScript==
// @name        no-ads clean layout KA
// @namespace   kissanime.com/*
// @description Removes ads and cleans up a little, undetected as adblock 1/16/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.16
// @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 ();
$(".lbl").remove();
//$('#selectEpisode').css("margin-left","80px");

//a few styles
$("#centerDivVideo").css("padding","5px");
$("#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");
$("div[style*='float: left; width: 70%; text-align: left']").css("width","531px");
$("#selectEpisode").before($("select[id*='selectQuality']"));
$("#selectQuality").css("margin-right","10px");


//gets rid of comments box and small link at the bottom if uncommented, just to sqeeze that last bit of space out
//$(".bigBarContainer").css("margin-bottom","0px");$("a[href*='#']").remove ();$("div[style*='height: 55px']").css("height","0px");$('#divComments').remove();

//removes quality selector for just a tiny bit more space
$("#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();


//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 ();

$("#btnNext")[0].scrollIntoView({
    behavior: "smooth", // or "auto" or "instant"
    block: "start" // or "end"
});


//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;}\