// ==UserScript== // @name Rotten Tomatoes: YouTube Trailer Search // @description Adds a YouTube link to Rotten Tomatoes pages // @version 0.2 // @author mica // @namespace greasyfork.org/users/12559 // @match https://www.rottentomatoes.com/m/* // @match https://www.rottentomatoes.com/tv/* // @grant none // @downloadURL none // ==/UserScript== var yts = 'https://www.youtube.com/results?search_query=' + encodeURIComponent(document.title.replace(' - Rotten Tomatoes','')) + ' trailer' $('#where-to-know').prepend(`
`);