Bot MAL

Bot dodający informacje o produkcji z serwisu myanimelist.net! + Nillay

// ==UserScript==
// @name         Bot MAL
// @namespace    http://shirya.pl/
// @version      1.0.1
// @description  Bot dodający informacje o produkcji z serwisu myanimelist.net! + Nillay
// @author       Shirya
// @run-at       document-start
// @include      http://bajkitv.pl/zarzadzaj?a=add_site&c=2
// @include      https://bajkitv.pl/zarzadzaj?a=add_site&c=2
// @require      http://code.jquery.com/jquery-2.2.1.min.js
// @grant        none
// ==/UserScript==

$(document).ready(function(){$(".nc").first().before('<h3>Wystąpił błąd? Zgłoś go do mnie na <a href="http://bajkitv.pl/poczta-Shirya" target="_blank">PW</a>.</h3>'),$(".row3").first().after('<div class="row1 bl ft_cen"><style>#antidu{color:#f90;font-family:arial,sans-serif;font-size:1.1em;margin-left:1em;}#antid{position:relative;}#antidm{display:block;}#antid,#antidu{display:inline;}#antidu.hidden,#antidm.hidden{display:none;}#antidm{border:1px solid #272727;box-shadow:2px 2px 3px #161616;max-width:450px;min-width:200px;overflow:hidden;position:absolute;right:0;text-overflow:ellipsis;top:130%;z-index:4;}#antidm h3{margin-top:0.4em;font-size:1.2em;}#antidm h3 a{display:block;outline:0;padding:0.4em;}#antidm h3 span,#antidm h3 img{display:inline-block;vertical-align:middle;max-width:390px}#antidm h3 i{font-style:normal}#antidm h3 img{-webkit-border-radius:1px;border-radius:1px;height:27px;margin-right:0.3em;width:27px;}#antidm h3 a.re i{border-bottom:1px solid #ad0303;}#antidm h3 b{color:#b7b7b7;display:block;font-size:0.8em;font-weight:300;line-height:normal;}</style><style>#fmurl1{background-color:transparent;border-color:transparent;cursor:pointer;}#fmurl1:focus{border-color:#505050;cursor:text;}#fmurl1:-moz-placeholder{color:#FFB200;opacity:1!important;text-align:center;font-weight:700;}#fmurl1:hover:-moz-placeholder{color:#FFD;}#fmurl1:focus:-moz-placeholder{opacity:0!important;}#fmurl1::-moz-placeholder{color:#FFB200;opacity:1!important;text-align:center;font-weight:700;}#fmurl1:hover::-moz-placeholder{color:#FFD;}#fmurl:focus::-moz-placeholder{opacity:0!important;}#fmurl1::-webkit-input-placeholder{color:#FFB200;opacity:1!important;text-align:center;font-weight:700;}#fmurl1:hover::-webkit-input-placeholder{color:#FFD;}#fmurl1:focus::-webkit-input-placeholder{opacity:0!important;}#fmurl1::-ms-input-placeholder{color:#FFB200;opacity:1!important;text-align:center;font-weight:700;}#fmurl1:hover::-ms-input-placeholder{color:#FFD;}#fmurl1:focus::-ms-input-placeholder{opacity:0!important;}#fm-loa{margin-left:0.7em}</style><input class="med" type="text" id="fmurl1" name="fmurl1" placeholder="informacje z myanimelist.net" spellcheck="false" value="" data-fo="Wklej link do strony z produkcją, aby pobrać informacje."/><span id="fm-loa1" class="i load mini hidden"></span></div>'),$("#fmurl1").blur(function(t){var order=$(this).serialize();$.ajax({type:"post",url:"http://krzywy853.hol.es/bt/json.php",data:order,dataType:"json",beforeSend:function(){$("#fm-loa1").removeClass("hidden")},success:function(response){$("#fm-loa1").addClass("hidden");var stypeinp=$('#stypeinp'),new_title_pl=$('#new_title_pl'),new_title_org=$('#new_title_org'),new_cover=$('#new_cover'),prem_day=$('#prem_day'),prem_month=$('#prem_month'),prem_month_text=$('#prem_month'),prem_year=$('#prem_year'),description=$('#description'),new_gatunek=$('#new_gatunek'),new_produkcja=$('#new_produkcja'),trailer=$('#trailer'),new_sez=$('#new_sez'),new_odc=$('#new_odc'),czas=$('#czas'),eps=$('#add-ep');stypeinp.val(response.stypeinp),new_title_pl.val(response.new_title_pl),new_title_org.val(response.new_title_org),new_cover.val(response.new_cover),prem_day.val(response.prem_day),$(".lc_select:nth-child(3) > .sel_con").text(response.prem_day),prem_month.val(response.prem_month),$(".lc_select:nth-child(5) > .sel_con").text(response.prem_month_text),prem_year.val(response.prem_year),$(".lc_select:nth-child(7) > .sel_con").text(response.prem_year),$(".smed").removeClass("hidden"),description.val(response.description),new_gatunek.val(response.new_gatunek),new_produkcja.val(response.new_produkcja),trailer.val(response.trailer),new_sez.val(response.new_sez),new_odc.val(response.new_odc),czas.val(response.czas),eps.append('<a href="'+response.epsUrl+'" target="_blank"> '+response.count_eps+'</a> <span class="mactiv"> (Odcniki na animezone.pl)</span>')}})})})