PageSourceSearch

https://dreamy-goldstine-d64959.netlify.app/invite.js

js dreamy-goldstine-d64959.netlify.app collected 2026-10-03 10:39:58 UTC 633 bytes, 28 lines download raw bytes

1/**
2 * @fileOverview 这个文件会被直接注入到 <head> 里。
3 * 由于 js 会缓存 1 年,所以每次修改这个文件后都需要修改文件名。
4 */
5
6const { search, hostname } = location
7
8const isLocal = hostname === 'localhost'
9const hasInviteCode = search.startsWith('?i=')
10
11/**
12 * 将链接中的邀请码写进 cookie
13 */
14function setInviteCookie() {
15  if (hasInviteCode) {
16    fetch(
17      `${
18        isLocal ? 'https://hcfy.local.dev' : 'https://hs-api.limingkai.cn'
19      }/set-invite?i=${search.slice(3)}`,
20      {
21        mode: 'cors',
22        credentials: 'include',
23      }
24    )
25  }
26}
27
28setInviteCookie()

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.