sbool loadMediumJSON_verbose; static int loadMediumJSON_timeout = 60*1000; // accepts raw username and "@username" static Map loadMediumJSON(S username) { S html = loadPageWithUserAgentAndTimeout("https://medium.com/" + addPrefix("@", username), "Mac Safari", loadMediumJSON_timeout); if (loadMediumJSON_verbose) print(html); S prefix = [[window["obvInit"](]]; int i = indexOf(html, prefix); if (i < 0) null; int j = indexOf(html, "\n", i); if (j < 0) null; S json = dropSuffix(")", trim(substring(html, i+l(prefix), j))); ret jsonDecodeMap(json); }