Greasy Fork is available in English.

Rotten Tomatoes: YouTube Trailers Link

Adds a youtube.com search link to movie/show pages

// ==UserScript==
// @name         Rotten Tomatoes: YouTube Trailers Link
// @description  Adds a youtube.com search link to movie/show pages
// @version      0.9
// @author       mica
// @namespace    greasyfork.org/users/12559
// @match        https://www.rottentomatoes.com/m/*
// @match        https://www.rottentomatoes.com/tv/*
// @license      MIT
// ==/UserScript==

const div = document.createElement('div');
    div.style.margin = '0 10px';
    div.style.width = '115px';
    div.style.float = 'left';
const a = document.createElement('a');
    a.href = 'https://www.youtube.com/results?search_query=' + encodeURIComponent(document.title.replace(' | Rotten Tomatoes','')) + ' trailer';
const p = document.createElement('p');
    p.style.margin = '1px 2px';
    p.style.color = 'black';
    p.style.fontSize = 'small';
    p.style.fontWeight = 'bold';
    p.innerText = 'Search Trailers on';
const img = document.createElement('img');
    img.src = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2aWV3Qm94PSI0MDkuMjg5IDI3Ny43ODcgNTEyIDExNC4zMDEiIHdpZHRoPSI1MTIiIGhlaWdodD0iMTE0LjMwMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyB2aWV3Qm94PSIwIDAgOTAgMjAiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIG1lZXQiIGNsYXNzPSJzdHlsZS1zY29wZSB5dC1pY29uIiB0cmFuc2Zvcm09Im1hdHJpeCg1LjcxNTAzOCwgMCwgMCwgNS43MTUwMzgsIDQwOS4yODg3NTcsIDI3Ny43ODcyMzEpIj4KICAgIDxnIGNsYXNzPSJzdHlsZS1zY29wZSB5dC1pY29uIj4KICAgICAgPHBhdGggZD0iTTI3Ljk3MjcgMy4xMjMyNEMyNy42NDM1IDEuODkzMjMgMjYuNjc2OCAwLjkyNjYyMyAyNS40NDY4IDAuNTk3MzY2QzIzLjIxOTcgMi4yNDI4OG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BlIHl0LWljb24iIHN0eWxlPSJmaWxsOiByZ2IoNDAsIDQwLCA0MCk7Ii8+CiAgICAgIDwvZz4KICAgIDwvZz4KICA8L2c+Cjwvc3ZnPg=='
a.append(p, img);
div.append(a);
document.querySelector('.modules-nav').prepend(div);
document.querySelector('.modules-nav').style.paddingTop = '10px';
document.querySelector('.modules-nav nav').style.paddingTop = '5px';
document.querySelector('.modules-nav nav').style.float = 'inline-start';
document.querySelector('.media-scorecard').style.paddingBottom = '0';