VidSrc-Embeds-NoAds

omuldezapada June 17, 2025 CSS HTML JS 108

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)

VidSrc-Embeds-NoAds is a minimalist, serverless proxy built with Node.js, leveraging Axios and Cheerio to fetch and sanitize video embeds from VidSrc. Its purpose is simple but powerful: remove all advertisements from embed players, delivering a clean iframe that can be safely embedded in your website or application.

๐Ÿš€ How It Works

  1. User Input: Access the endpoint like: /embed?url=
  2. Proxy Response: The proxy fetches the content, extracts the iframe, adds sandbox security attributes, and returns clean HTML.
  3. Output: A secure, ad-free iframe ready to use in any HTML environment.

โœ… Key Features

  • Ad-Free Playback: All third-party ads are removed automatically.
  • Secure: Uses sandbox=”allow-scripts allow-same-origin” for safe embedding.
  • Serverless: Deployable instantly to Vercel, Railway, or Render.
  • Open-Source: Fully customizable, ready to use or adapt.
  • No Auth or DB Required: Works with public embed URLs only.
  • Lightweight: Minimal dependencies (axios, cheerio) and fast responses.

๐Ÿ› ๏ธ Tech Stack

  • Language: JavaScript (Node.js)
  • Runtime: Serverless or traditional Node environment
  • Dependencies:

๐Ÿงช 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 embedded video iframe.

๐Ÿ”ง Installation & Usage

Option 1: Run Locally

  1. Download the project from the link above.
  2. Unzip the contents to your local development folder.
  3. Install the dependencies by running:
  4. npm install
  5. Start the development server using:
  6. npx vercel dev

Option 2: Deploy Instantly to Vercel (via GitHub)

If you use GitHub, follow these steps to deploy the project:

  1. First, download the project from the link above.
  2. Unzip the contents and create a new repository on your GitHub account.
  3. Upload all extracted files into that new repository.
  4. Once the repo is ready, go to vercel.com/new and import your GitHub project.
  5. Vercel will automatically detect the configuration and deploy the proxy instantly.

๐Ÿ“ข Disclaimer

This tool is intended strictly for educational and developmental use. It interacts only with public video embeds and does not bypass paywalls or DRM protection. Always comply with content provider terms and copyright law.

Leave a comment

Your email address will not be published. Required fields are marked *