Back
Version 74
1/2/2025
import { customAlphabet } from "npm:nanoid";
const nanoid = customAlphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", 10);
export interface DataSheet {
site: "dood" | "streamtape" | null;
siteSpecificId: string;
extractedURL: string;
accessHeaders: {};
fromCache: boolean;
subtitles?: {
language: string;
url: string;
}[];
thumbnails?: {
size: string;
url: string;
}[];
storyboard?: {
url: string;
}[];
}
export async function Fetcher(url: string, referer: string) {
const design = `?destination=${encodeURIComponent(url)}&referer=${encodeURIComponent(referer)}`;
const request = await fetch(`https://eb305cc8-973e-4f2d2-85dd-b1f16649c4d5.cloudflarepreviews.com/{design}`, {
headers: {
"X-CF-Token": "f3785d6baa615ce27c3e05af2b5d3fb129a6aaabbb6abc7a91c2470d18e6aab4",
"cf-raw-http": "true",
"Referer": "https://workers.cloudflare.com/",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0",
"Accept": "*/*",
"Accept-Language": "en-US,en;q=0.5",
"Sec-Fetch-Dest": "empty",
"Sec-Fetch-Mode": "cors",
"Sec-Fetch-Site": "cross-site",
"Priority": "u=0",
"Pragma": "no-cache",
Updated: January 3, 2025