Advertisement
Guest User

android-app://com.vkontakte.android/vkontakte/m.vk.com/page-

a guest
Mar 29th, 2019
411
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (parent && parent != window && (browser.msie || browser.opera || browser.mozilla || browser.chrome || browser.safari || browser.iphone)) {
  2.       document.getElementsByTagName('body')[0].innerHTML = '';
  3.     } else {
  4.       window.domReady && domReady();
  5.       updateMoney(0);
  6. initPageLayoutUI();
  7. if (browser.iphone || browser.ipad || browser.ipod) {
  8.   setStyle(bodyNode, {webkitTextSizeAdjust: 'none'});
  9. }var qf = ge('quick_login_form'), ql = ge('quick_login'), qe = ge('quick_email'), qp = ge('quick_pass');
  10. var qlb = ge('quick_login_button'), prgBtn = qlb;
  11.  
  12. var qinit = function() {
  13.   setTimeout(function() {
  14.     ql.insertBefore(ce('div', {innerHTML: '<iframe class="upload_frame" id="quick_login_frame" name="quick_login_frame"></iframe>'}), qf);
  15.     qf.target = 'quick_login_frame';
  16.     qe.onclick = loginByCredential;
  17.     qp.onclick = loginByCredential;
  18.   }, 1);
  19. }
  20.  
  21. if (window.top && window.top != window) {
  22.   window.onload = qinit;
  23. } else {
  24.   setTimeout(qinit, 0);
  25. }
  26.  
  27. qf.onsubmit = function() {
  28.   if (!ge('quick_login_frame')) return false;
  29.   if (!val('quick_login_ul') && !trim(qe.value)) {
  30.     notaBene(qe);
  31.     return false;
  32.   } else if (!trim(qp.value)) {
  33.     notaBene(qp);
  34.     return false;
  35.   }
  36.   lockButton(window.__qfBtn = prgBtn);
  37.   prgBtn = qlb;
  38.   clearTimeout(__qlTimer);
  39.   __qlTimer = setTimeout(loginSubmitError, 30000);
  40.   domFC(domPS(qf)).onload = function() {
  41.     clearTimeout(__qlTimer);
  42.     __qlTimer = setTimeout(loginSubmitError, 2500);
  43.   }
  44.   return true;
  45. }
  46.  
  47. window.loginSubmitError = function() {
  48.   showFastBox('Warning', 'Unable to complete encrypted authorization. This can happen if your date and time settings are not configured correctly on your system. Please check your date &amp; time settings and restart the browser.');
  49. }
  50. window.focusLoginInput = function() {
  51.   scrollToTop(0);
  52.   notaBene('quick_email');
  53. }
  54. window.changeQuickRegButton = function(noShow) {
  55.   if (noShow) {
  56.     hide('top_reg_link', 'quick_reg_button');
  57.   } else {
  58.     show('top_reg_link', 'quick_reg_button');
  59.   }
  60.   toggle('top_switch_lang', noShow && window.langConfig && window.langConfig.id != 3);
  61. }
  62. window.submitQuickLoginForm = function(email, pass, opts) {
  63.   setQuickLoginData(email, pass, opts);
  64.   if (opts && opts.prg) prgBtn = opts.prg;
  65.   if (qf.onsubmit()) qf.submit();
  66. }
  67. window.setQuickLoginData = function(email, pass, opts) {
  68.   if (email !== undefined) ge('quick_email').value = email;
  69.   if (pass !== undefined) ge('quick_pass').value = pass;
  70.   var params = opts && opts.params || {};
  71.   each (params, function(i, v) {
  72.     var el = ge('quick_' + i) || ge('quick_login_' + i);;
  73.     if (el) {
  74.       val(el, params[i]);
  75.     } else {
  76.       qf.appendChild(ce('input', {type: 'hidden', name: i, id: 'quick_login_' + i, value: v}));
  77.     }
  78.   });
  79. }
  80. window.loginByCredential = function() {
  81.   if (!browserFeatures.cmaEnabled || !window.submitQuickLoginForm || window._loginByCredOffered) return false;
  82.  
  83.   _loginByCredOffered = true;
  84.   navigator.credentials.get({
  85.     password: true,
  86.     mediation: 'required'
  87.   }).then(function(cred) {
  88.     if (cred) {
  89.       submitQuickLoginForm(cred.id, cred.password);
  90.       return true;
  91.     } else {
  92.       return false;
  93.     }
  94.   });
  95. }
  96.  
  97. if (qlb) {
  98.   qlb.onclick = function() { if (qf.onsubmit()) qf.submit(); };
  99. }
  100.  
  101. if (browser.opera_mobile) show('quick_expire');
  102.  
  103. if (1) {
  104.   hide('support_link_td', 'top_support_link');
  105. }
  106. var ts_input = ge('ts_input');
  107. if (ts_input) {
  108.   placeholderSetup(ts_input, {back: false, reload: true, phColor: '#8fadc8'});
  109. }
  110. TopSearch.init();;window.shortCurrency && shortCurrency();
  111. window.zNav && setTimeout(zNav.pbind({}, {queue:1}), 0);
  112. window.handlePageParams && handlePageParams({"id":0,"loc":"?id=53896572&oid=-179934823","wrap_page":1,"width":960,"width_dec":165,"width_dec_footer":165,"top_home_link_class":"top_home_link fl_l","body_class":"firefox ","counters":"","pvbig":0,"pvdark":1});addEvent(document, 'click', onDocumentClick);
  113. addLangKeys({"global_apps":"Apps","global_friends":"Friends","global_communities":"Communities","head_search_results":"Search results","global_chats":"Chats","global_show_all_results":"Show all results","global_news_search_results":"Search results by news","global_emoji_cat_recent":"Frequently Used","global_emoji_cat_1":"Faces","global_emoji_cat_2":"Animals &amp; Nature","global_emoji_cat_3":"Hands &amp; People","global_emoji_cat_4":"Food &amp; Drink","global_emoji_cat_5":"Activity","global_emoji_cat_6":"Travel &amp; Transport","global_emoji_cat_7":"Objects","global_emoji_cat_8":"Symbols","global_emoji_cat_9":"Flags","stories_remove_warning":"Are you sure you want to delete this story?<br>This cannot be undone.","stories_narrative_remove_warning":"Are you sure you want to delete this narrative?<br>This cannot be undone.","stories_remove_confirm":"Delete","stories_answer_placeholder":"Your message…","stories_answer_sent":"Message sent","stories_blacklist_title":"Hidden from Stories","stories_settings":"Settings","stories_add_blacklist_title":"Hide from stories","stories_add_blacklist_message":"This user&#39;s stories won&#39;t appear in your feed, but you&#39;ll stay friends.","stories_add_blacklist_button":"Hide from stories","stories_add_blacklist_message_group":"This community&#39;s stories won&#39;t appear in your feed, but you&#39;ll still be a follower.","stories_error_cant_load":"Unable to load the story.","stories_try_again":"Try again","stories_error_expired":"The story could be viewed<br>within 24 hours after publication","stories_error_deleted":"Story deleted","stories_error_private":"Story hidden by author","stories_mask_tooltip":"Try this mask","stories_mask_sent":"Mask sent to phone","stories_followed":"Started following&#33;","stories_unfollowed":"You&#39;ve unfollowed","stories_is_ad":"Advertisment","stories_private_story":"Private<br>story","stories_deleted_story":"Story<br>deleted","stories_bad_browser":"Stories are not supported by your browser","stories_delete_all_replies_confirm":"Are you sure you want to delete all of {name}&#39;s replies from last 24 hours?<br>This cannot be undone.","stories_hide_reply_button":"Hide reply","stories_reply_hidden":"Story reply hidden.","stories_restore":"Restore","stories_hide_reply_continue":"Return to replies","stories_hide_all_replies":["","Hide all of his replies from the last 24 hours","Hide all of her replies from the last 24 hours"],"stories_reply_add_to_blacklist":"Add to blacklist","stories_hide_reply_warning":"Are you sure you want to hide this reply?<br>This cannot be undone.","stories_replies_more_button":["","Show %s more commenter","Show %s more commenters"],"stories_all_replies_hidden":"All replies hidden","stories_ban_confirm":"Are you sure you want to add {name} to the blacklist?<br>This cannot be undone.","stories_banned":"The user has been blacklisted","stories_share":"Share","stories_follow":"Follow","stories_unfollow":"Unfollow","stories_report":"Report","stories_report_sent":"Report sent","stories_narrative_show":"View narrative","stories_narrative_bookmark_added":"Narrative saved to {link}Bookmarks{\/link}","stories_narrative_bookmark_deleted":"Narrative removed from Bookmarks","stories_narrative_edit_button":"Edit narrative","stories_narrative_add_bookmark_button":"Save to Bookmarks","stories_narrative_remove_bookmark_button":"Remove from Bookmarks","stories_show_hashtag_link":"Search hashtag","stories_live_ended_title":"Thanks for watching&#33;","stories_live_ended_desc_club":"{name} finished <br>the live stream.","stories_live_ended_desc_user":["","{name} finished the live stream.","{name} finished the live stream."],"stories_live_ended_open_club":"Go to community","stories_live_ended_open_user":"Go to profile","stories_live_ended_watch_next":"Watch next","stories_live_N_watching":["","%s watching now","%s watching now"],"stories_live_chat_msg_too_long":"The message is too long"}, true);
  114. addLangKeys({"global_fifa_confetti_text":"GOOOOOOOAL&#33;"});
  115. addTemplates({"_":"_","stickers_sticker_url":"https:\/\/vk.com\/sticker\/1-%id%-%size%-6"});
  116. window.cur = window.cur || {};
  117. cur['fifaConfettiEnabled']=false;
  118.  
  119. window.cur = window.cur || {};
  120. cur['emojiHintsSendLogHash']="b88e373dd4e191f0ca";
  121. ;cur.module = 'pages';; window.TimeSpent && TimeSpent.setTimers && TimeSpent.setTimers(3000, 10000); TimeSpent && TimeSpent.update && TimeSpent.update(false);
  122. ;(function (d, w) {
  123. if (w.__dev) {
  124.   return
  125. }
  126. var ts = d.createElement("script"); ts.type = "text/javascript"; ts.async = true;
  127. ts.src = (d.location.protocol == "https:" ? "https:" : "http:") + "//top-fwz1.mail.ru/js/code.js";
  128. var f = function () {var s = d.getElementsByTagName("script")[0]; s.parentNode.insertBefore(ts, s);};
  129. if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); }
  130. })(document, window);
  131.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement