Show IMDb ratings next to Movie/TV torrents on 1337x. Robust ID detection with OMDb/IMDb fallbacks.
当前为
A lightweight userscript that shows IMDb ratings next to movie and TV torrents on 1337x. It’s fast, accurate, and avoids non-video categories like music, books, and apps.
• Adds a small rating badge (e.g., “7.3/10”) after eligible torrent titles.
• Works even when the torrent page doesn’t link IMDb:
– Finds the correct IMDb title ID using IMDb’s suggestion service.
– Gets the rating via OMDb (if you provide a key) or directly from IMDb pages.
• Skips non-video items to keep pages clean and responsive.
1) Detects video releases using common patterns:
– TV: S01E07, S01E07–08, S01 (season packs), or date-coded shows (YYYY-MM-DD / YYYY.MM.DD).
– Video/resolution/codec/audio markers: 1080p, 2160p, .mkv, .mp4, WEB-DL, BluRay, x265/HEVC, DDP 5.1, Atmos, etc.
2) Resolves the IMDb ID:
– Uses a direct IMDb link on the torrent page if available.
– Otherwise, cleans the title and queries IMDb’s suggestion API to find the correct tt… ID.
3) Fetches and displays the rating:
– Uses OMDb (if configured).
– If OMDb has no numeric rating, reads IMDb pages to extract the aggregate rating.
Visual cue by color:
• Green > 7.0
• Gold 6.0–7.0
• Red < 6.0
1) Install a userscript manager:
– Tampermonkey (Chrome/Edge/Brave/Opera)
– Violentmonkey (Chrome/Firefox)
– Greasemonkey (Firefox)
2) Create a new userscript and paste the script code.
3) Visit https://1337x.to/ — ratings will appear automatically on lists and search pages.
Required hosts are already declared in the script: 1337x.to, imdb.com, www.imdb.com, m.imdb.com, v2.sg.media-imdb.com
You can add an OMDb key to speed up rating lookups.
• Get a key: https://www.omdbapi.com/
• In the script, set:
const API_KEY = 'YOUR_OMDB_KEY';
If no key is provided, the script still works by reading IMDb pages directly.
• Only requests the hosts needed to look up ratings.
• No tracking or analytics.
• Avoids unnecessary lookups by filtering out non-video items first.