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.
- 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.
To install the userscript:
- Install Tampermonkey or Greasemonkey extension in your browser:
- Install the script by visiting the link below:
- Click the "Install this script" button in your Greasemonkey/Tampermonkey dashboard.
- 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.
- Navigate to any IMDb movie or TV series page.
- The script will automatically insert the video player at the top of the page.
- Enjoy the streaming experience directly on IMDb!
- Movies: Avengers Endgame
- TV series: Stranger Things
imdb.com
m.imdb.com
- Video Source:
vidsrc.cc
This script uses the following external APIs:
- TMDb (The Movie Database): For fetching series IDs based on IMDb IDs.
- vidsrc
- Greasemonkey/Tampermonkey: Required to run the script in your browser.
- GM_xmlhttpRequest: Used to make cross-origin requests to fetch TMDb data.
- IMDb ID extraction: The script extracts the IMDb ID from the URL to determine the video source.
- TMDb API Query: For TV series, the script queries TMDb to get the corresponding series ID using the IMDb ID.
- Iframe Embedding: A video player iframe from
vidsrc
is embedded based on the IMDb or TMDb ID.
- 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.