Advertisement
by_ix

SteamSummerEvent2022

Jun 23rd, 2022
787
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (async() => {
  2.   let delay = (ms) => new Promise((res) => setTimeout(res, ms));
  3.   await jQuery.post("/saleaction/ajaxopendoor", {
  4.     "sessionid": g_sessionID,
  5.     "authwgtoken": jQuery("#application_config").data("userinfo").authwgtoken,
  6.     "door_index": 0,
  7.     "clan_accountid": 41316928,
  8.   });
  9.   for (let link of[
  10.       "/category/arcade_rhythm/?snr=1_614_615_clorthaxquest_1601",
  11.       "/category/strategy_cities_settlements/?snr=1_614_615_clorthaxquest_1601",
  12.       "/category/sports/?snr=1_614_615_clorthaxquest_1601",
  13.       "/category/simulation/?snr=1_614_615_clorthaxquest_1601",
  14.       "/category/multiplayer_coop/?snr=1_614_615_clorthaxquest_1601",
  15.       "/category/casual/?snr=1_614_615_clorthaxquest_1601",
  16.       "/category/rpg/?snr=1_614_615_clorthaxquest_1601",
  17.       "/category/horror/?snr=1_614_615_clorthaxquest_1601",
  18.       "/vr/?snr=1_614_615_clorthaxquest_1601",
  19.       "/category/strategy/?snr=1_614_615_clorthaxquest_1601",
  20.     ]) {
  21.     try {
  22.       let html = await jQuery.get(link);
  23.       await jQuery.post("/saleaction/ajaxopendoor", {
  24.         "sessionid": g_sessionID,
  25.         "authwgtoken": jQuery("#application_config", html).data("userinfo").authwgtoken,
  26.         "door_index": jQuery("#application_config", html).data("capsuleinsert").payload,
  27.         "clan_accountid": 41316928,
  28.         "datarecord": jQuery("#application_config", html).data("capsuleinsert").datarecord,
  29.       });
  30.       console.log("You got a new badge!");
  31.     } catch (e) {
  32.       console.error("Failed to obtain badge!", e);
  33.     } finally {
  34.       await delay(1500);
  35.     }
  36.   }
  37. })();
Advertisement
RAW Paste Data Copied
Advertisement