Online PHP and Javascript Decoder decode hidden script to uncover its real functionality


var hH=
	{
	perPage:(function()
		{
		return config.navigasi_nomor.tampilan_per_halaman
	}
	)(),numPages:(function()
		{
		return config.navigasi_nomor.tampilan_tombol_navigasi
	}
	)(),a:function(pageInfo)
		{
		var html='',pageNumber=parseInt(hH.numPages/2);
		if(pageNumber==hH.numPages-pageNumber)
			{
			hH.numPages=pageNumber*2+1
		}
		pageStart=currentPageNo-pageNumber;
		if(pageStart<1)pageStart=1;
		lastPageNo=parseInt(pageInfo/hH.perPage)+1;
		if(lastPageNo-1==pageInfo/hH.perPage)lastPageNo=lastPageNo-1;
		pageEnd=pageStart+hH.numPages-1;
		if(pageEnd>lastPageNo)pageEnd=lastPageNo;
		var prevNumber=parseInt(currentPageNo)-1;
		if(pageStart>1)
			{
			if(currentPage=="page")
				{
				html+='<a href="/" title="Page 1">1</a>'
			}
			else
				{
				html+='<a href="/search/label/'+postLabel+'?max-results='+hH.perPage+'" title="Page 1">1</a>'
			}
		}
		if(pageStart>2)
			{
			html+='<span class="dot">...</span>'
		}
		for(var jj=pageStart;
		jj<=pageEnd;
		jj++)
			{
			if(currentPageNo==jj)
				{
				html+='<span class="current">'+jj+'</span>'
			}
			else if(jj==1)
				{
				if(currentPage=="page")
					{
					html+='<a href="/" title="Page 1">1</a>'
				}
				else
					{
					html+='<a href="/search/label/'+postLabel+'?max-results='+hH.perPage+'" title="Page 1">1</a>'
				}
			}
			else
				{
				if(currentPage=="page")
					{
					html+='<a onclick="hH.d('+jj+');
					return false" title="Page '+jj+'">'+jj+'</a>'
				}
				else
					{
					html+='<a onclick="hH.e('+jj+');
					return false" title="Page '+jj+'">'+jj+'</a>'
				}
			}
		}
		if(pageEnd<lastPageNo-1)
			{
			html+='<span class="dot">...</span>'
		}
		if(pageEnd<lastPageNo)
			{
			if(currentPage=="page")
				{
				html+='<a onclick="hH.d('+lastPageNo+');
				return false" title="Page '+lastPageNo+'">'+lastPageNo+'</a>'
			}
			else
				{
				html+='<a onclick="hH.e('+lastPageNo+');
				return false" title="Page '+lastPageNo+'">'+lastPageNo+'</a>'
			}
		}
		var nextnumber=parseInt(currentPageNo)+1;
		var pageArea=document.getElementsByName("pageArea");
		var blogPager=document.getElementsByClassName("blog-pager")[0];
		for(var p=0;
		p<pageArea.length;
		p++)
			{
			pageArea[p].innerHTML=html
		}
		if(pageArea&&pageArea.length>0)
			{
			html=''
		}
		if(blogPager)
			{
			blogPager.innerHTML=html,blogPager.classList.add('number'),blogPager.classList.remove('infinite')
		}
	}
	,b:function(root)
		{
		var feed=root.feed;
		var totaldata=parseInt(feed.openSearch$totalResults.$t,10);
		hH.a(totaldata)
	}
	,c:function()
		{
		var thisUrl=window.location.href;
		if(thisUrl.indexOf('/search/label/')!=-1)
			{
			if(thisUrl.indexOf('?updated-max')!=-1)
				{
				postLabel=thisUrl.substring(thisUrl.indexOf('/search/label/')+14,thisUrl.indexOf('?updated-max'))
			}
			else if(thisUrl.indexOf('?max')!=-1)
				{
				postLabel=thisUrl.substring(thisUrl.indexOf('/search/label/')+14,thisUrl.indexOf('?max'))
			}
			else
				{
				postLabel=thisUrl.substring(thisUrl.indexOf('/search/label/')+14)
			}
		}
		if(thisUrl.indexOf('?q=')==-1)
			{
			if(thisUrl.indexOf('/search/label/')==-1)
				{
				currentPage='page';
				if(window.location.href.indexOf('#page=')!=-1)
					{
					currentPageNo=window.location.href.substring(window.location.href.indexOf('#page=')+6,window.location.href.length)
				}
				else
					{
					currentPageNo=1
				}
				$.ajax(
					{
					url:'/feeds/posts/summary?max-results=1&alt=json-in-script&callback=hH.b',type:'GET'
				}
				)
			}
			else
				{
				currentPage='label';
				if(thisUrl.indexOf('max-results=')==-1)
					{
					hH.perPage=20
				}
				if(window.location.href.indexOf('#page=')!=-1)
					{
					currentPageNo=window.location.href.substring(window.location.href.indexOf('#page=')+6,window.location.href.length)
				}
				else
					{
					currentPageNo=1
				}
				$.ajax(
					{
					url:'/feeds/posts/summary?max-results=1&alt=json-in-script&callback=hH.b',type:'GET'
				}
				)
			}
		}
	}
	,d:function(numberpage)
		{
		jsonstart=(numberpage-1)*hH.perPage;
		noPage=numberpage;
		$.ajax(
			{
			url:'/feeds/posts/summary?start-index='+jsonstart+'&max-results=1&alt=json-in-script&callback=hH.f',type:'GET'
		}
		)
	}
	,e:function(numberpage)
		{
		jsonstart=(numberpage-1)*hH.perPage;
		noPage=numberpage;
		$.ajax(
			{
			url:'/feeds/posts/summary?start-index='+jsonstart+'&max-results=1&alt=json-in-script&callback=hH.f',type:'GET'
		}
		)
	}
	,f:function(root)
		{
		post=root.feed.entry[0];
		var timestamp1=post.published.$t.substring(0,19)+post.published.$t.substring(23,29);
		var timestamp=encodeURIComponent(timestamp1);
		if(currentPage=='page')
			{
			var pAddress='/search?updated-max='+timestamp+'&max-results='+hH.perPage+'#page='+noPage
		}
		else
			{
			var pAddress='/search/label/'+postLabel+'?updated-max='+timestamp+'&max-results='+hH.perPage+'#page='+noPage
		}
		window.location.href=pAddress
	}
	,g:function()
		{
		let noPage,currentPage,currentPageNo,postLabel
	}
	,h:function()
		{
		$('.blog-pager .inner').remove();
		let bernomor=false;
		window.addEventListener('scroll',function()
			{
			(0!=document.documentElement.scrollTop&&false===bernomor||0!=document.body.scrollTop&&!1===bernomor)&&(!function()
				{
				hH.c()
			}
			(),bernomor=true)
		}
		,true)
	}
	,i:function()
		{
		let pager=$('.blog-pager'),posts=$('.blog-posts');
		pager.on('click','a',function()
			{
			history.pushState('','',this.href);
			$.get(this.href,
				{
			}
			,function(data)
				{
				var source=$(data).find('article').length?$(data):$('<div></div>');
				posts.append(source.find('.blog-posts').html());
				pager.html(source.find('.blog-pager .inner').clone())
			}
			,'html');
			$(this).replaceWith('<div class=\"loading\"><svg viewBox=\"0 0 24 24\"><path d=\"M12,4V2A10,10 0 0,0 2,12H4A8,8 0 0,1 12,4Z\"/></svg></div>');
			return false
		}
		)
	}
	,j:function()
		{
		if(config.navigasi==1)
			{
			hH.i()
		}
		else if(config.navigasi==2)
			{
			hH.h()
		}
	}
}
,PoO=function()
	{
	if(document.getElementById('HTML3'))
		{
		document.getElementById('HTML3').classList.add('igniplexTengah')
	}
	let ads=document.querySelectorAll('.igniplexTengah');
	if(ads)
		{
		let post=document.querySelectorAll('.post-body br, .post-body p, .post-body blockquote, .post-body table, .post-body figure');
		if(post.length>=1)
			{
			let h=ads.length+1,i=post.length/h, j=Array.from(
				{
				length:h
			}
			,(val,key)=>key+1),k=j.slice(0,-1);
			for(let l=0;
			l<k.length;
			l++)
				{
				let m=k[l],n=parseInt((i*m));
				if(post[n].nodeName=='P')
					{
					post[n].parentNode.insertBefore(ads[l],post[n])
				}
				else
					{
					post[n].parentNode.insertBefore(ads[l],post[n].nextSibling)
				}
			}
		}
		else
			{
			let o=document.getElementsByClassName('post-body')[0];
			for(let p=0;
			p<ads.length;
			p++)
				{
				o.append(ads[p])
			}
		}
	}
};




© 2020 Quttera Ltd. All rights reserved.