elegantJadeParrotfishmain.tsx4 matches
1213async function archive(url: string) {
14const response = await fetch(url);
15const body = await response.text();
16const $ = load(body);
51<h3>DDL UTILITY v0.0.1b</h3>
52<code>
53This site fetches content from another site,if any links dosent work then the movie is probably not uploaded.
54</code>
55<input type="text" placeholder="IMDB ID" name="imdb" />
67const url = new URL(atob(c.req.query("id")));
68if ((url.hostname) !== "www.primewire.tf") throw new Error("Error...");
69const req = await fetch(url, { method: "HEAD", redirect: "manual" });
70const realURL = await req.headers.get("location");
71const newURL = new URL(realURL);
344// getSourcesParams.append("h", kid);
345// getSourcesParams.append("b", browserid);
346// const result = await fetch(
347// `https://rabbitstream.net/ajax/v2/embed-4/getSources?${getSourcesParams.toString()}`,
348// {
verbalScarletAntelopemain.tsx12 matches
60}, [state.loading, state.hasMore]);
6162const fetchStories = async () => {
63try {
64const response = await fetch("/api/stories");
65if (!response.ok) throw new Error("Failed to fetch dates");
66const data = await response.json();
67setStories(data);
69}
70catch (err) {
71console.error("Error fetching stories:", err);
72}
73};
7475const fetchComments = async (query: string, story: string, page: number) => {
76try {
77dispatch({ type: "loading", value: true });
78const response = await fetch(`/api/comments?query=${encodeURIComponent(query)}&story=${story}&page=${page}`);
79if (!response.ok) throw new Error("Failed to fetch comments");
80const data = await response.json();
81setComments(prevComments => page === 1 ? data.hits : [...prevComments, ...data.hits]);
84dispatch({ type: "loading", value: false });
85} catch (err) {
86console.error("Error fetching comments:", err);
87dispatch({ type: "loading", value: false });
88}
99dispatch({ type: "hasMore", value: true });
100dispatch({ type: "query", value: newQuery });
101fetchComments(fullQuery, state.story, 1);
102};
103104useEffect(() => {
105fetchStories();
106107const handleScroll = () => {
122: "";
123const fullQuery = `${filtersQuery} ${state.query}`;
124fetchComments(fullQuery, state.story, state.page);
125}
126}
408tags: `comment, story_${story}`,
409page: 0,
410hitsPerPage: 100, // Fetch a moderate number of comments
411});
412
forbearingOrangePlatypusmain.tsx2 matches
3536async function execute(statement: InStatement, args?: InArgs): Promise<ResultSet> {
37const res = await fetch(`${API_URL}/v1/sqlite/execute`, {
38method: "POST",
39headers: {
5051async function batch(statements: InStatement[], mode?: TransactionMode): Promise<ResultSet[]> {
52const res = await fetch(`${API_URL}/v1/sqlite/batch`, {
53method: "POST",
54headers: {
3536async function execute(statement: InStatement, args?: InArgs): Promise<ResultSet> {
37const res = await fetch(`${API_URL}/v1/sqlite/execute`, {
38method: "POST",
39headers: {
5051async function batch(statements: InStatement[], mode?: TransactionMode): Promise<ResultSet[]> {
52const res = await fetch(`${API_URL}/v1/sqlite/batch`, {
53method: "POST",
54headers: {
FedifyOnValTownmain.tsx1 match
168);
169}
170return federation.fetch(req, { contextData: undefined });
171}
jubilantMagentaMitemain.tsx3 matches
3031modifiedRequest.headers.set("Referer", `${EMBY_SERVER}/web/index.html`);
32return fetch(modifiedRequest);
33}
34}
47modifiedRequest.headers.set("Connection", request.headers.get("Connection") || "close");
4849return fetch(modifiedRequest);
50}
5152addEventListener("fetch", event => {
53event.respondWith(handleRequest(event.request));
54});
1export default async function sendxmpp(target: string, body: string) {
2await fetch("https://singpolyma-sendxmppapi.web.val.run", {
3method: "POST",
4body: JSON.stringify({ target, body })
blob_adminmain.tsx2 matches
1/** @jsxImportSource https://esm.sh/hono@4.0.8/jsx **/
23import { modifyFetchHandler } from "https://esm.town/v/andreterron/codeOnValTown?v=50";
4import view_route from "https://esm.town/v/pomdtr/blob_admin_blob";
5import create_route from "https://esm.town/v/pomdtr/blob_admin_create";
137});
138139export default modifyFetchHandler(passwordAuth(app.fetch));