PageSourceSearch

https://yaoonion.fun/js/api.js

js yaoonion.fun collected 2026-10-06 13:16:49 UTC 476 bytes, 19 lines download raw bytes

1const API_CONFIG = {
2    hitokoto: 'https://v1.hitokoto.cn',
3};
4
5// 获取一言
6const fetchHitokoto = () => {
7    fetch(API_CONFIG.hitokoto)
8        .then(response => response.json())
9        .then(data => {
10            const hitokotoEl = document.getElementById('hitokoto')
11            hitokotoEl.textContent = data.hitokoto
12        })
13        .catch(console.error)
14};
15
16// 页面加载时初始化
17window.addEventListener('DOMContentLoaded', () => {
18    fetchHitokoto();
19});

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.