Facebook
From Obese Human, 5 Years ago, written in JavaScript.
Embed
Download Paste or View Raw
Hits: 292
  1. var vk = {
  2.   ads_rotate_interval: 120000,
  3.   al: parseInt('3') || 4,
  4.   id: 0,
  5.   intnat: '1' ? true : false,
  6.   host: 'vk.com',
  7.   lang: 3,
  8.   rtl: parseInt('') || 0,
  9.   version: 8716892694820,
  10.   stDomains: 0,
  11.   stDomain: '',
  12.   stExcludedMasks: ["loader_nav","lang"],
  13.   zero: false,
  14.   contlen: 18478,
  15.   loginscheme: 'https',
  16.   ip_h: '0521055cb30aef50f2',
  17.   navPrefix: '/',
  18.   dt: parseInt('0') || 0,
  19.   fs: parseInt('13') || 13,
  20.   ts: 1546413807,
  21.   tz: 10800,
  22.   pd: 0,
  23.   css_dir: '',
  24.   vcost: 7,
  25.   time: [2019, 1, 2, 10, 23, 27],
  26.   sampleUser: -1, spentLastSendTS: new Date().getTime(),
  27.   a11y: 0,
  28.   statusExportHash: '',
  29.   audioAdsConfig: {"_":"_"},
  30.   longViewTestGroup: "every_view",
  31.   cma: 1,
  32.   lpConfig: {
  33.     enabled: 0,
  34.     key: '',
  35.     ts: 0,
  36.     url: '',
  37.     lpstat: 0
  38.   },
  39.  
  40.   pr_tpl: "<div class=\"pr %cls%\" id=\"%id%\"><div class=\"pr_bt\"><\/div><div class=\"pr_bt\"><\/div><div class=\"pr_bt\"><\/div><\/div>",
  41.  
  42.   audioInlinePlayerTpl: "<div class=\"audio_inline_player _audio_inline_player no_select\">\n  <div class=\"audio_inline_player_right\">\n    <div class=\"audio_inline_player_volume\"><\/div>\n  <\/div>\n  <div class=\"audio_inline_player_left\">\n    <div class=\"audio_inline_player_progress\"><\/div>\n  <\/div>\n<\/div>",
  43.  
  44.   tnsPixelType: 'unauth'
  45. };;vk.rv="17892";;if (!window.constants) { window.constants = {Groups: {
  46.   GROUPS_ADMIN_LEVEL_USER: 0,
  47.   GROUPS_ADMIN_LEVEL_MODERATOR: 1,
  48.   GROUPS_ADMIN_LEVEL_EDITOR: 2,
  49.   GROUPS_ADMIN_LEVEL_ADMINISTRATOR: 3,
  50.   GROUPS_ADMIN_LEVEL_HOST: 4,
  51.   GROUPS_ADMIN_LEVEL_EVENT_CREATOR: 5,
  52.   GROUPS_ADMIN_LEVEL_CREATOR: 6,
  53.   GROUPS_ADMIN_PSEUDO_LEVEL_ADVERTISER: 100
  54. }}; };
  55.  
  56. window.locDomain = vk.host.match(/[a-zA-Z]+\.[a-zA-Z]+\.?$/)[0];
  57. var _ua = navigator.userAgent.toLowerCase();
  58. if (/opera/i.test(_ua) || !/msie 6/i.test(_ua) || document.domain != locDomain) document.domain = locDomain;
  59. var ___htest = (location.toString().match(/#(.*)/) || {})[1] || '', ___to;
  60. ___htest = ___htest.split('#').pop();
  61. if (vk.al != 1 && ___htest.length && ___htest.substr(0, 1) == vk.navPrefix) {
  62.   if (vk.al != 3 || vk.navPrefix != '!') {
  63.     ___to = ___htest.replace(/^(\/|!)/, '');
  64.     if (___to.match(/^([^\?]*\.php|login|mobile)([^a-z0-9\.]|$)/)) ___to = '';
  65.     location.replace(location.protocol + '//' + location.host + '/' + ___to);
  66.   }
  67. }
  68.  
  69. var StaticFiles = {
  70.   'cmodules/web/common_web.js' : {v: 29},
  71.   'common.css' : {v: 60201939279},'fonts_cnt.css' : {v: 2660709036}
  72.   ,'lang3_0.js': {v: 25773563},'pages.css':{v:19994481336},'pages.js':{v:1162259210},'wk.css':{v:21876941370},'wk.js':{v:2226505193},'top_logo.css':{v:16655094573},'fifa2018.js':{v:1},'cookies_policy.css':{v:1},'time_spent.js':{v:732637085},'cmodules/web/page_layout.js':{v:2293731470},'ui_common.js':{v:1415203699},'ui_common.css':{v:18007337855},'audioplayer.js':{v:193149621876},'cmodules/web/likes.js':{v:1}
  73. }
  74. var abp;