You will need to install a user script manager extension to install this script.
Add links in IMDb pages to torrent sites -- easy downloading from IMDb
Greasemonkey is currently not supported. Try alternatives such as Violentmonkey or Tampermonkey.
Inside the script, there is a list of dictionaries that contains of all the sites, and the data necessary to check IMDb against them. Each site is a dictionary with the following attributes:
name: The site name, abbreviated
searchUrl: The URL to perform the search against, see below for how to tailor the string to a site
matchRegex: The string which appears if the searchUrl doesn't return a result
postiveMatch(optional): Changes the test to return true if the searchUrl does return a result that matches matchRegex
TV(optional): If true, it means that this site will only show up on TV pages. By default, sites only show up on movie pages
both(optional): Means that the site will show up on both movie and TV pages
To create a search URL, there are four parameters you can use inside the URL:
See the script for examples.
Follows a bastardization of the semver standard: