Greasy Fork is available in English.

IMDb Full Summary

Automatically show the full plot summary on IMDb

目前為 2025-09-22 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name          IMDb Full Summary
// @description   Automatically show the full plot summary on IMDb
// @author        chocolateboy
// @copyright     chocolateboy
// @version       3.1.0
// @namespace     https://github.com/chocolateboy/userscripts
// @license       GPL
// @include       /^https://www\.imdb\.com(/[^/]+)?/title/tt[0-9]+(/([#?].*)?)?$/
// @run-at        document-start
// @grant         none
// ==/UserScript==

// NOTE This file is generated from src/imdb-full-summary.user.ts and should not be edited directly.

"use strict";
(() => {
  // src/imdb-full-summary.user.ts
  // @license       GPL
  var $ = document;
  var init = { childList: true };
  var run = () => {
    let summary = "";
    try {
      const { textContent: metadata } = $.getElementById("__NEXT_DATA__");
      summary = JSON.parse(metadata).props.pageProps.aboveTheFoldData.plot.plotText.plainText;
    } catch (e) {
      console.warn("Can't extract summary from JSON metadata:", e.message);
    }
    if (!summary) {
      return;
    }
    for (const target of $.querySelectorAll('[data-testid="plot"] [data-testid^="plot-"]')) {
      const callback = () => {
        observer.disconnect();
        target.textContent = summary;
        observer.observe(target, init);
      };
      const observer = new MutationObserver(callback);
      callback();
    }
  };
  $.addEventListener("readystatechange", run, { once: true });
})();