JSFiddle - React, Tailwind, and code Playground
by neonDog
HTML
<!DOCTYPE html>
<html lang=en>
<head>
<title>OnlyFans</title>
<meta name=description content=OnlyFans>
<meta name=keywords content=OnlyFans>
<meta charset=utf-8>
<meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,viewport-fit=cover">
<meta property=og:image content=https://static2.onlyfans.com/static/prod/f/202511061708-cef6f44192/images/of-logo-b.jpg>
<meta property=og:image:width content=1200>
<meta property=og:image:height content=1200>
<meta property=og:description name=description content="OnlyFans is the social platform revolutionizing creator and fan connections. The site is inclusive of artists and content creators from all genres and allows them to monetize their content while developing authentic relationships with their fanbase.">
<meta property=og:url content=https://onlyfans.com>
<meta property=og:title content=OnlyFans>
<meta property=og:type content=website>
<link rel=apple-touch-icon sizes=180x180 href=https://static2.onlyfans.com/static/prod/f/202511061708-cef6f44192/icons/apple-touch-icon.png>
<link rel=icon type=image/png sizes=32x32 href=https://static2.onlyfans.com/static/prod/f/202511061708-cef6f44192/icons/favicon-32x32.png>
<link rel=icon type=image/png sizes=192x192 href=https://static2.onlyfans.com/static/prod/f/202511061708-cef6f44192/icons/android-chrome-192x192.png>
<link rel=icon type=image/png sizes=16x16 href=https://static2.onlyfans.com/static/prod/f/202511061708-cef6f44192/icons/favicon-16x16.png>
<link rel=manifest href=https://static2.onlyfans.com/static/prod/f/202511061708-cef6f44192/icons/site.webmanifest>
<link rel=mask-icon href=https://static2.onlyfans.com/static/prod/f/202511061708-cef6f44192/icons/safari-pinned-tab.svg color=#00aff0>
<link rel="shortcut icon" href=https://static2.onlyfans.com/static/prod/f/202511061708-cef6f44192/icons/favicon.ico>
<meta name=msapplication-TileColor content=#00aff0>
<meta...
JavaScript
let html = document.body.innerHTML;
function getFirstOnlyFansScript(html) {
if (typeof html !== 'string') return null;
const re = /<script[^>]*\bsrc=["']([^"']*onlyfans\.com[^"']*)["'][^>]*>/ig;
const m = re.exec(html);
if (m) return m[1];
}
let result = getFirstOnlyFansScript(html);
console.log(result);