Skip to content

Add video player from various sources directly into IMDB movie/series webpage to stream content directly.

Notifications You must be signed in to change notification settings

M4X1MUS07/imdb-player

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

IMDB Video Player - Stream from Vidsrc

A Tampermoney/Greasemonkey usescript that embeds a streaming video player from vidsrc directly into IMDb movie and series pages, allowing you to watch videos without leaving the IMDb website.

Features:

  • Seamless Streaming: Adds a video player directly into IMDb movie/series pages from vidsrc
  • Automatic Detection: Detects whether the page is for a movie or a TV series and loads the correct player.
  • Supports IMDb and TMDb: Uses IMDb ID and TMDb's API to fetch the corresponding video source.
  • Cross-Origin Requests: Leverages Greasemonkey/Tampermonkey's GM_xmlhttpRequest for cross-domain API calls.

Preview

Preview

Installation:

To install the userscript:

  1. Install Tampermonkey or Greasemonkey extension in your browser:
  1. Install the script by visiting the link below:
  1. Click the "Install this script" button in your Greasemonkey/Tampermonkey dashboard.

How it works

  • Movies: Automatically embeds a video player using the movie's IMDb ID.
  • Series: Fetches the series' TMDb ID using the IMDb ID, then embeds the corresponding video player for the TV show.
  • The script detects the page type (Movies or Series) based on the IMDb page's title.

How to Use

  1. Navigate to any IMDb movie or TV series page.
  2. The script will automatically insert the video player at the top of the page.
  3. Enjoy the streaming experience directly on IMDb!

Example URLs

Supported Sites

  • imdb.com
  • m.imdb.com
  • Video Source: vidsrc.cc

API Integration

This script uses the following external APIs:

Technical Details

Dependencies

  • Greasemonkey/Tampermonkey: Required to run the script in your browser.
  • GM_xmlhttpRequest: Used to make cross-origin requests to fetch TMDb data.

Main Components

  1. IMDb ID extraction: The script extracts the IMDb ID from the URL to determine the video source.
  2. TMDb API Query: For TV series, the script queries TMDb to get the corresponding series ID using the IMDb ID.
  3. Iframe Embedding: A video player iframe from vidsrc is embedded based on the IMDb or TMDb ID.

Error Handling

  • Gracefully handles network errors and missing TMDb data, logging relevant messages to the console.
  • If the target DOM element is missing, the script logs an error without breaking the page.

About

Add video player from various sources directly into IMDB movie/series webpage to stream content directly.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published