// ==UserScript== // @name Streaming links on letterboxd // @namespace https://greasyfork.org/fr/users/829268 // @match https://letterboxd.com/film/* // @version 2.0 // @author liliantdn: https://greasyfork.org/users/829268 // @description 10/31/2023, 1:34:25 PM // @license GPL-3.0-only // @downloadURL https://update.greasyfork.icu/scripts/478881/Streaming%20links%20on%20letterboxd.user.js // @updateURL https://update.greasyfork.icu/scripts/478881/Streaming%20links%20on%20letterboxd.meta.js // ==/UserScript== function getFirstGroup(regexp, str) { return Array.from(str.matchAll(regexp), m => m[1]); } const imdbRegex = /(?:https?:\/\/)?(?:www\.)?imdb\.com\/title\/(tt[0-9]*)\/?/g; const imdbId = getFirstGroup(imdbRegex,$('.micro-button[data-track-action="IMDb"]').attr("href")); const tmdbRegex = /(?:https?:\/\/)?(?:www\.)?themoviedb\.org\/movie\/([0-9]*)\/?/g; const tmdbId = getFirstGroup(tmdbRegex,$('.micro-button[data-track-action="TMDb"]').attr("href")); console.log("IMDB ID:"+imdbId); $("head").append(` `); $('#userpanel').before(` Stream:
Stremio Stremio web Movie-web SuperEmbed VidSrc BlackVid
`)