More Tomatoes

Automatically show the full "Movie Info" plot synopsis on Rotten Tomatoes

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name          More Tomatoes
// @description   Automatically show the full "Movie Info" plot synopsis on Rotten Tomatoes
// @author        chocolateboy
// @copyright     chocolateboy
// @version       2.0.0
// @namespace     https://github.com/chocolateboy/userscripts
// @license       GPL
// @include       http://rottentomatoes.com/m/*
// @include       http://*.rottentomatoes.com/m/*
// @include       https://rottentomatoes.com/m/*
// @include       https://*.rottentomatoes.com/m/*
// @run-at        document-start
// @grant         none
// ==/UserScript==

// NOTE This file is generated from src/more-tomatoes.user.ts and should not be edited directly.

"use strict";
(() => {
  // src/more-tomatoes.user.ts
  // @license       GPL
  var run = () => {
    const synopsis = document.querySelector('[data-qa="section:media-scorecard"]');
    if (!synopsis) {
      return;
    }
    const readLess = synopsis.querySelector('[slot="ctaClose"]');
    if (readLess) {
      readLess.style.display = "none";
    }
    const readMore = synopsis.querySelector('[slot="ctaOpen"]');
    if (readMore) {
      readMore.click();
    }
  };
  window.addEventListener("load", run);
})();