PageSourceSearch

https://gashapon.jp/js/set_gashapon_member_id.js

js gashapon.jp collected 2026-10-02 04:07:14 UTC 469 bytes, 15 lines download raw bytes

1function getCookie(name) {
2  const cookies = document.cookie.split("; ");
3  for (let cookie of cookies) {
4    const [key, val] = cookie.split("=");
5    if (key === name) {
6      return decodeURIComponent(val).split(",");
7    }
8  }
9  return [];
10}
11let membersIDCookieValue = getCookie('GASHAPON_MEMBER_CUSTOMER_ID');
12membersIDCookieValue = membersIDCookieValue.length ? membersIDCookieValue[0] : "";
13dataLayer = [{
14  "customerID": membersIDCookieValue
15}];

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.