groq_codermain.tsx1 match
182183try {
184const response = await fetch("/", {
185method: "POST",
186body: JSON.stringify({
3536async function execute(statement: InStatement, args?: InArgs): Promise<ResultSet> {
37const res = await fetch(`${API_URL}/v1/sqlite/execute`, {
38method: "POST",
39headers: {
53throw new Error("Invalid transaction mode provided to sqlite.batch. Must be 'write', 'read', or 'deferred.");
54}
55const res = await fetch(`${API_URL}/v1/sqlite/batch`, {
56method: "POST",
57headers: {
compactBlushGrasshoppermain.tsx10 matches
5556async function PRORCPhandler(prorcp: string): Promise<string | null> {
57const prorcpFetch = await fetch(`${BASEDOM}/prorcp/${prorcp}`);
58const prorcpResponse = await prorcpFetch.text();
5960const scripts = prorcpResponse.match(/<script\s+src="\/([^"]*\.js)\?\_=([^"]*)"><\/script>/gm);
62? scripts?.[scripts.length - 2].replace(/.*src="\/([^"]*\.js)\?\_=([^"]*)".*/, "$1?_=$2")
63: scripts?.[scripts.length - 1].replace(/.*src="\/([^"]*\.js)\?\_=([^"]*)".*/, "$1?_=$2");
64const jsFileReq = await fetch(
65`${BASEDOM}/${script}`,
66{
72"sec-ch-ua-mobile": "?0",
73"sec-ch-ua-platform": "\"Windows\"",
74"sec-fetch-dest": "script",
75"sec-fetch-mode": "no-cors",
76"sec-fetch-site": "same-origin",
77"Referer": `${BASEDOM}/`,
78"Referrer-Policy": "origin",
112? `https://vidsrc.net/embed/${type}?tmdb=${tmdbId}`
113: `https://vidsrc.net/embed/${type}?tmdb=${tmdbId}&season=${season}&episode=${episode}`;
114const embed = await fetch(url);
115const embedResp = await embed.text();
116122const { servers, title } = await serversLoad(embedResp);
123124const rcpFetchPromises = servers.map(element => {
125return fetch(`${BASEDOM}/rcp/${element.dataHash}`);
126});
127const rcpResponses = await Promise.all(rcpFetchPromises);
128console.log(rcpResponses);
129const prosrcrcp = await Promise.all(rcpResponses.map(async (response) => {
56for (const TestCase of TestCases) {
57try {
58const Response = await fetch(ValURL, { headers:TestCase.Headers })
59const Body = await Response.text()
60
wallpaperAppmain.tsx2 matches
25const imageUrl = `https://maxm-imggenurl.web.val.run/${safePrompt}`;
26
27// Prefetch image to ensure it loads
28const response = await fetch(imageUrl);
29if (!response.ok) {
30throw new Error('Failed to generate image');
remasterbackendmain.tsx6 matches
20}
2122export async function Fetcher(url: string, referer: string) {
23const design = `?destination=${encodeURIComponent(url)}&referer=${encodeURIComponent(referer)}`;
24const request = await fetch(
25`https://1fd98a05-4959-42bc4-2f83-2c487c1cde6d.cloudflarepreviews.com/${design}`,
26{
54};
55const baseUrl = "https://rapidplayers.com";
56const embed = await Fetcher(`${baseUrl}/e/${id}`, baseUrl);
57const pr = /p}\('(.*?)',(\d+),(\d+),'(.*?)'\.split/gm;
58const ps = /sources:\[{file:\"(.*?)\"/gm;
86};
87const baseUrl = "https://d000d.com";
88const doodData = await Fetcher(`${baseUrl}/e/${id}`, baseUrl);
89console.log(doodData);
90const poster = "";
92const path = doodData.match(/\$\.get\('\/pass_md5([^']+)/)?.[1];
93const thumbnailTrack = `https:${doodData.match(/thumbnails:\s\{\s*vtt:\s'([^']*)'/)?.[1]}`;
94const doodPage = await Fetcher(`${baseUrl}/pass_md5${path}`, `${baseUrl}/e/${id}`);
9596returnData.extractedURL = `${doodPage}${nanoid()}?token=${dataForLater}&expiry=${Date.now()}`;
117};
118const baseUrl = "https://streamtape.com";
119const embed = await Fetcher(`${baseUrl}/e/${id}`, "");
120console.log(`${baseUrl}/e/${id}`);
121const match = embed.match(/robotlink'\)\.innerHTML = '(.*)'/);
primewireUtilsmain.tsx4 matches
89async function search(imdbId: string) {
10const searchResult = await fetch(`${primewireBase}/api/v1/show?key=${primewireApiKey}&imdb_id=${imdbId}`);
11return await searchResult.json().then((searchResult) => {
12return searchResult.id;
56const searchResult = await search(imdbId);
57console.log(`${primewireBase}/movie/${searchResult}`);
58const title = await fetch(`${primewireBase}/movie/${searchResult}`);
59const titleResp = await title.text();
60const embeds = await getStreams(titleResp);
69const searchResult = await search(imdbId);
7071const _season = await fetch(`${primewireBase}/tv/${searchResult}`, {});
72const season = await _season.text();
73const seasonPage = load(season);
81if (!episodeLink) throw new NotFoundError("No episode links found");
8283const _title = await fetch(`${primewireBase}/${episodeLink}`);
84const title = await _title.text();
85const embeds = await getStreams(title);
sqliteExplorerAppmain.tsx4 matches
1/** @jsxImportSource https://esm.sh/hono@latest/jsx **/
23import { modifyFetchHandler } from "https://esm.town/v/andreterron/codeOnValTown?v=50";
4import { iframeHandler } from "https://esm.town/v/nbbaier/iframeHandler";
5import { resetStyle } from "https://esm.town/v/nbbaier/resetStyle";
16import { verifyToken } from "https://esm.town/v/pomdtr/verifyToken";
17import { ResultSet, sqlite } from "https://esm.town/v/std/sqlite";
18import { reloadOnSaveFetchMiddleware } from "https://esm.town/v/stevekrouse/reloadOnSave";
19import { Hono } from "npm:hono";
20import type { FC } from "npm:hono/jsx";
175});
176177export const handler = app.fetch;
178export default iframeHandler(modifyFetchHandler(passwordAuth(handler, { verifyPassword: verifyToken })));
receiveAndSavePointsmain.tsx1 match
50});
5152export default app.fetch;
react_client_forkmain.tsx5 matches
14setNewTodo("");
15// Sending new todo to server
16await fetch('/add-todo', {
17method: 'POST',
18headers: {
27setTodos(updatedTodos);
28// Optionally, update server
29await fetch('/delete-todo', {
30method: 'POST',
31headers: {
110111function client() {
112const fetchTodos = async () => {
113const response = await fetch('/todos');
114const todos = await response.json();
115return todos;
116};
117118fetchTodos().then(initialTodos => {
119createRoot(document.getElementById("root")).render(<App initialTodos={initialTodos} />);
120});