LetterBoxd AP Features

Search native text on Douban and opening full size cover

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         LetterBoxd AP Features
// @namespace    https://greasyfork.org/en/users/689482-quin15
// @version      2.0.0
// @description  Search native text on Douban and opening full size cover
// @author       Quin15
// @match        https://letterboxd.com/film/*
// @icon         https://www.google.com/s2/favicons?domain=letterboxd.com
// @grant        none
// ==/UserScript==

var copyText = document.createElement('div')
copyText.style = "height:50px;width:100px;border:1px solid;border-radius:8px;text-align:center;float:left;cursor:pointer"
copyText.innerText = "Search on Douban"
document.querySelector('div[class="review body-text -prose -hero prettify"] div').appendChild(copyText);
copyText.addEventListener("click", function() {open(encodeURI("https://search.douban.com/movie/subject_search?search_text=" + document.querySelector('#featured-film-header p em').innerText.substr(1).slice(0, -1)), "")});

var coverImage = document.createElement('div')
coverImage.style = "height:50px;width:100px;border:1px solid;border-radius:8px;text-align:center;float:left;cursor:pointer;margin-left:10px;"
coverImage.innerText = "Open Cover Image"
document.querySelector('div[class="review body-text -prose -hero prettify"] div').appendChild(coverImage);
coverImage.addEventListener("click", function() {open(document.querySelector('section[class^="poster-list"] div div img').srcset.replace(" 2x", ''), "")});