VidSrc-Embeds-NoAds
An open-source, serverless Node.js proxy that removes ads from "VidSrc" embeds. Just pass the video URL via "/embed?url=" and get a clean iframe-ready to use on your site. Fast, lightweight, no registration, and deployable anywhere.
/api/index.js
module.exports = async (req, res) => {
res.setHeader("Content-Type", "text/html");
res.status(200).send(`
<!DOCTYPE html>
<html lang="ro">
<head>
<meta charset="UTF-8">
<title>VidSrc-Embeds-NoAds by ScriptSRC</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
html, body {
margin: 0;
padding: 0;
height: 100%;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
background-color: #f6f8fa;
color: #171c24;
display: flex;
justify-content: center;
align-items: center;
}
.content-wrapper {
background: #fff;
padding: 2rem;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
max-width: 600px;
width: 100%;
box-sizing: border-box;
text-align: center;
margin: 20px;
}
.section-title {
font-size: 2rem;
margin-bottom: 1rem;
color: #0366d6;
}
.script-info p {
margin-bottom: 1rem;
line-height: 1.6;
}
.script-info code {
background-color: #eaeef2;
padding: 0.2rem 0.5rem;
border-radius: 4px;
font-family: monospace;
}
.script-info a {
color: #0366d6;
text-decoration: none;
}
.script-info a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div class="content-wrapper">
<h1 class="section-title">VidSrc-Embeds-NoAds</h1>
<div class="script-info">
<p>This proxy was proudly created by <strong><a href="https://scriptsrc.com" target="_blank">ScriptSRC.com</a></strong> to remove advertisements from VidSrc embed players.</p
<p>To use it, simply append the target embed URL to the <strong>/embed?url=</strong> endpoint. For example: <strong><a href="https://vid-src-embeds-no-ads-demo.vercel.app/embed?url=https://vidsrc.in/embed/tt0944947/2-3/" target="_blank">/embed?url=https://vidsrc.in/embed/tt0944947/2-3/</a></strong> will return a clean, ad-free video player.</p>
</div>
</div>
</body>
</html>
`);
};
/api/embed.js
const axios = require("axios");
const cheerio = require("cheerio");
module.exports = async (req, res) => {
const { url } = req.query;
if (!url || !url.startsWith("https://vidsrc.in/embed/")) {
return res.status(400).send("Invalid or missing URL");
}
try {
const response = await axios.get(url, {
headers: {
"User-Agent": "Mozilla/5.0",
},
});
const $ = cheerio.load(response.data);
const iframe = $("iframe").first();
const pageTitle = $("title").text().trim() || "VidSrc-Embeds-NoAds made by ScriptSRC.com";
if (!iframe.length) {
return res.status(404).send("The iframe was not found.");
}
iframe.attr("sandbox", "allow-same-origin allow-scripts");
res.setHeader("Content-Type", "text/html");
res.send(`
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>${pageTitle}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body, html {
margin: 0;
padding: 0;
height: 100%;
background: #000;
}
iframe {
width: 100%;
height: 100%;
border: none;
}
</style>
</head>
<body>
${$.html(iframe)}
</body>
</html>
`);
} catch (error) {
console.error("Proxy error:", error.message);
res.status(500).send("Error processing URL.");
}
};
package.json
{
"name": "VidSrc-Embeds-NoAds",
"version": "1.0.0",
"description": "Simple proxy for vidsrc embeds to remove ads",
"main": "api/embed.js",
"scripts": {
"start": "vercel dev"
},
"dependencies": {
"axios": "^1.6.0",
"cheerio": "^1.0.0-rc.12"
}
}
vercel.json
{
"version": 2,
"builds": [
{
"src": "api/embed.js",
"use": "@vercel/node"
},
{
"src": "api/index.js",
"use": "@vercel/node"
}
],
"routes": [
{
"src": "/embed",
"dest": "/api/embed.js"
},
{
"src": "/",
"dest": "/api/index.js"
}
]
}
Procfile
web: node api/index.js
README.md
# VidSrc-Embeds-NoAds
**VidSrc-Embeds-NoAds** is a minimalist, serverless proxy built with **Node.js**, leveraging **Axios** and **Cheerio** to fetch and sanitize video embed content from **VidSrc**. Its goal is simple yet powerful: strip all ads from embedded players, returning a clean and safe iframe for use on any website or application.
> π **This repository serves for promotion only. For full access to the source code, documentation, and updates, please visit the official website: [scriptsrc.com](https://scriptsrc.com/scripts/vidsrc-embeds-noads/)**
---
## π How It Works
1. Send a request to the endpoint:
```
/embed?url=https://vidsrc.in/embed/ID
```
2. The proxy fetches and processes the embed content.
3. It returns a clean, ad-free iframe ready for direct use.
---
## β
Key Features
- π― **Ad-Free Playback** β removes all third-party ads automatically
- π **Secure** β uses `sandbox="allow-scripts allow-same-origin"` for safe embedding
- β‘ **Serverless Ready** β instantly deployable to Vercel, Railway, or Render
- π§© **No Auth or Database** β works with public embed URLs only
- π§± **Open-Source and Customizable** β simple source code, easy to adapt
---
## π§ͺ Example Usage
```
https://vid-src-embeds-no-ads-demo.vercel.app/embed?url=https://vidsrc.in/embed/tt0944947/2-3/
```
> β
Output: Clean HTML with only the video iframe
---
## π οΈ Tech Stack
- **Language:** JavaScript (Node.js)
- **Runtime:** Serverless or traditional Node.js environment
- **Dependencies:** [axios](https://www.npmjs.com/package/axios), [cheerio](https://www.npmjs.com/package/cheerio)
---
## π₯ Download & Documentation
π **The full source code, installation guide, and updates are available exclusively at:**
π [https://scriptsrc.com](https://scriptsrc.com/scripts/vidsrc-embeds-noads/)
---
## β οΈ Disclaimer
This tool is intended strictly for educational and development use. It does not bypass paywalls or DRM systems. Always use responsibly and comply with third-party terms of service and copyright laws.
---
## π£ Support & Contact
For support, suggestions, or inquiries, please use the contact section on the official website or open a ticket there.
---
**π Official Website:** [https://scriptsrc.com](https://scriptsrc.com)
gjtWSpHJMxDrQLMbWwh
iLApXEBIfRlYJeiCQUGOBqSq
I am genuinely delighted to read this webpage posts which contains lots of helpful facts,
thanks for providing these kinds of information.
Check out my webpage Bazar CNC strojΕ―
sortoqyournnpmhgdisswrhmxpdklq
zoGJiqEPqWCfBvTvXZy
mqroxvypiiivwjnekftzengmlhtyml
pbEaXJGbNiTRTYxpKjtj
APfDHVYVVRrLnUviqBTNsErv
hw6g9o
i569fx
tkl2uo