Skip to content

Instantly share code, notes, and snippets.

function getPublics(userId,callback) {
var xhr = new XMLHttpRequest();
var body = 'act=load_idols&al=1&oid=' + userId;
xhr.open("POST", 'https://vk.com/al_fans.php', true)
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xhr.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
function getPublics(userId,callback) {
var xhr = new XMLHttpRequest();
var body = 'act=load_idols&al=1&oid=' + userId;
xhr.open("POST", 'https://vk.com/al_fans.php', true)
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xhr.onreadystatechange = function() {
if (this.readyState == 4) {
'use strict'
const http = require('http');
const qs = require('querystring');
const TextDecoder = require('text-encoding').TextDecoder;
const PORT = 3000;
// const VK_UID = 50595075;
const VK_REMIXSID = '00796e02caae56926fcd0881bd3b80711c520ad2cf533e0c32522'; // you must be logined to get this