您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Allows to hide chosen sections on subpages and show them again by mouse hover.
/* ==UserStyle== @name IMDb Peekaboo @namespace https://gf.qytechs.cn/pl/users/636724-cml99 @version 1.0.0 @description Allows to hide chosen sections on subpages and show them again by mouse hover. @description:pl Pozwala ukryć wybrane sekcje na podstronach i pokazać je ponownie po najechaniu. @author CML99 @license CC-BY-NC-SA-4.0 @preprocessor stylus @var checkbox cmlHoverShow "✓ Show On Hover" 1 @var checkbox cmlEmbedHeaders "☐ Embed Headers" 0 @var checkbox cmlHideSingle "✕ Hide Single Sections" 1 @var checkbox cmlHideVideos "✕ Hide Videos" 1 @var checkbox cmlHidePhotos "✕ Hide Photos" 1 @var checkbox cmlHideCast "✕ Hide Top Cast" 0 @var checkbox cmlHideReviews "✕ Hide User Reviews" 1 @var checkbox cmlHideEpisodes "✕ Hide Episodes" 0 @var checkbox cmlHideEpisodeRates "✕ Hide Episode Ratings" 1 @var checkbox cmlHideMoreAlike "✕ Hide More Like This" 0 @var checkbox cmlHideStoryline "✕ Hide Storyline" 0 @var checkbox cmlHideDidKnow "✕ Hide Did You Know" 1 @var checkbox cmlHideTopPicks "✕ Hide Top Picks" 1 @var checkbox cmlHideFAQ "✕ Hide FAQ" 1 @var checkbox cmlHideDetails "✕ Hide Details" 0 @var checkbox cmlHidePersonDetails "✕ Hide Personal Details" 0 @var checkbox cmlHidePersonKnown "✕ Hide Person Known For" 1 @var checkbox cmlHidePersonCredits "✕ Hide Person Filmography" 0 @var checkbox cmlHideBoxOffice "✕ Hide Box Office" 1 @var checkbox cmlHideTechSpecs "✕ Hide Tech Specs" 1 @var checkbox cmlHideRelNews "✕ Hide Related News" 1 @var checkbox cmlHideContrib "✕ Hide Contributions" 1 @var checkbox cmlSideEditorial "⎢✕ Hide Editorial Lists" 1 @var checkbox cmlSideUserLists "⎢✕ Hide User Lists" 1 @var checkbox cmlSidePolls"⎢✕ Hide User Polls" 1 @var checkbox cmlSideProjects"⎢✕ Hide Projects Development" 1 ==/UserStyle== */ @-moz-document domain("imdb.com") { /* --- Generic --- */ #cmlPlaceholder { display: none; } .ipc-page-wrapper--base:has(.atf-background-theme-dark) .ipc-page-content-container--center:not(:has(div[data-testid="list-page-mc-list-content"])) { if cmlEmbedHeaders { .ipc-page-section--tp-none .ipc-page-section, .ipc-page-section--none .ipc-slate-card__content, .ipc-page-section .ipc-title { background-color: hsla(0, 0%, 35%, 0.2); border-radius: 5px; padding: 0.25rem 1rem; } .ipc-page-section { padding-top: 0.5rem; padding-bottom: 0rem; margin-bottom: 0.25rem; } /* .ipc-page-section .ipc-title, .ipc-page-section--tp-none .ipc-page-section { margin-left: 1.35rem; margin-right: -1.35rem; } */ } } } @-moz-document domain("imdb.com") { /* --- Main --- */ #cmlPlaceholder { display: none; } .ipc-page-wrapper--base:has(.atf-background-theme-dark) .ipc-page-content-container--center .ipc-page-grid__item--span-2:not(:has(div[data-testid="list-page-mc-list-content"])) { if cmlHideSingle and !cmlHoverShow { .ipc-page-section--none div[data-testid="content-with-images"] .ipc-html-content, .ipc-page-section--none div[data-testid="content-with-images"] .ipc-link, .ipc-page-section--none div[data-testid="content-with-images"] > div:nth-of-type(2) { display: none; } .ipc-page-section--none div[data-testid="content-with-images"] h2 { font-size: 1.1rem; } .ipc-page-section--none .ipc-page-section { padding-top: 0.25rem; padding-bottom: 0rem; margin-bottom: 0.25rem; } } if cmlHideSingle and cmlHoverShow { .ipc-page-section--none div[data-testid="content-with-images"]:not(:hover) .ipc-html-content, .ipc-page-section--none div[data-testid="content-with-images"]:not(:hover) .ipc-link, .ipc-page-section--none div[data-testid="content-with-images"]:not(:hover) > div:nth-of-type(2) { display: none; } .ipc-page-section--none div[data-testid="content-with-images"]:not(:hover) h2 { font-size: 1.1rem; } .ipc-page-section--none .ipc-page-section { padding-top: 0.25rem; padding-bottom: 0rem; margin-bottom: 0.25rem; } } /* -------------------------------------------------- */ if cmlHideVideos and !cmlHoverShow { .ipc-page-section[data-testid="videos-section"] > div[data-testid^="grid_"] { display: none; } } if cmlHideVideos and cmlHoverShow { .ipc-page-section[data-testid="videos-section"]:not(:hover) > div[data-testid^="grid_"] { display: none; } } /* -------------------------------------------------- */ if cmlHidePhotos and !cmlHoverShow { .ipc-page-section[data-testid="Photos"] > section { display: none; } } if cmlHidePhotos and cmlHoverShow { .ipc-page-section[data-testid="Photos"]:not(:hover) > section { display: none; } } /* -------------------------------------------------- */ if cmlHideCast and !cmlHoverShow { .ipc-page-section[data-testid="title-cast"] > .ipc-shoveler, .ipc-page-section[data-testid="title-cast"] > .ipc-metadata-list { display: none; } } if cmlHideCast and cmlHoverShow { .ipc-page-section[data-testid="title-cast"]:not(:hover) > .ipc-shoveler, .ipc-page-section[data-testid="title-cast"]:not(:hover) > .ipc-metadata-list { display: none; } } /* -------------------------------------------------- */ if cmlHideReviews and !cmlHoverShow { .ipc-page-section[data-testid="UserReviews"] > div:not(:first-of-type) { display: none; } } if cmlHideReviews and cmlHoverShow { .ipc-page-section[data-testid="UserReviews"]:not(:hover) > div:not(:first-of-type) { display: none; } } /* -------------------------------------------------- */ if cmlHideEpisodes and !cmlHoverShow { .ipc-page-section[data-testid="episodes-widget"] > div:not(:first-of-type) { display: none; } } if cmlHideEpisodes and cmlHoverShow { .ipc-page-section[data-testid="episodes-widget"]:not(:hover) > div:not(:first-of-type) { display: none; } } /* -------------------------------------------------- */ if cmlHideEpisodeRates and !cmlHoverShow { iframe[data-testid="embeddable-iframe"] { height: 50px !important; } } if cmlHideEpisodeRates and cmlHoverShow { iframe[data-testid="embeddable-iframe"]:not(:hover) { height: 50px !important; } } /* -------------------------------------------------- */ if cmlHideMoreAlike and !cmlHoverShow { .ipc-page-section[data-testid="MoreLikeThis"] > .ipc-shoveler { height: 0px; } } if cmlHideMoreAlike and cmlHoverShow { .ipc-page-section[data-testid="MoreLikeThis"]:not(:hover) > .ipc-shoveler { height: 0px; } } /* -------------------------------------------------- */ if cmlHideStoryline and !cmlHoverShow { .ipc-page-section[data-testid="Storyline"] > div:not(:first-of-type) { display: none; } } if cmlHideStoryline and cmlHoverShow { .ipc-page-section[data-testid="Storyline"]:not(:hover) > div:not(:first-of-type) { display: none; } } /* -------------------------------------------------- */ if cmlHideDidKnow and !cmlHoverShow { .ipc-page-section[data-testid="DidYouKnow"] > .ipc-list-card--border-line { display: none; } } if cmlHideDidKnow and cmlHoverShow { .ipc-page-section[data-testid="DidYouKnow"]:not(:hover) > .ipc-list-card--border-line { display: none; } } /* -------------------------------------------------- */ if cmlHideTopPicks and !cmlHoverShow { .ipc-page-section[cel_widget_id="DynamicFeature_TopPicks"] div[data-testid="top-picks--shoveler"] { height: 0px; visibility: hidden; } .ipc-page-section[cel_widget_id="DynamicFeature_TopPicks"] .ipc-title__description { display: none; } } if cmlHideTopPicks and cmlHoverShow { .ipc-page-section[cel_widget_id="DynamicFeature_TopPicks"]:not(:hover) div[data-testid="top-picks--shoveler"] { height: 0px; visibility: hidden; } .ipc-page-section[cel_widget_id="DynamicFeature_TopPicks"]:not(:hover) .ipc-title__description { display: none; } } /* -------------------------------------------------- */ if cmlHideFAQ and !cmlHoverShow { .ipc-page-section[cel_widget_id="StaticFeature_FAQ"] > div:not(:first-of-type) { display: none; } .ipc-page-section[cel_widget_id="StaticFeature_FAQ"] .ipc-title__description { display: none; } } if cmlHideFAQ and cmlHoverShow { .ipc-page-section[cel_widget_id="StaticFeature_FAQ"]:not(:hover) > div:not(:first-of-type) { display: none; } .ipc-page-section[cel_widget_id="StaticFeature_FAQ"]:not(:hover) .ipc-title__description { display: none; } } /* -------------------------------------------------- */ if cmlHideDetails and !cmlHoverShow { .ipc-page-section[data-testid="Details"] > div:not(:first-of-type) { display: none; } } if cmlHideDetails and cmlHoverShow { .ipc-page-section[data-testid="Details"]:not(:hover) > div:not(:first-of-type) { display: none; } } /* -------------------------------------------------- */ if cmlHidePersonDetails and !cmlHoverShow { .ipc-page-section[data-testid="PersonalDetails"] > div:not(:first-of-type) { display: none; } } if cmlHidePersonDetails and cmlHoverShow { .ipc-page-section[data-testid="PersonalDetails"]:not(:hover) > div:not(:first-of-type) { display: none; } } /* -------------------------------------------------- */ if cmlHidePersonKnown and !cmlHoverShow { .ipc-page-section:has(a[href="#name_known_for"]) > div[data-testid="nm_flmg_kwn_for"] { display: none; } } if cmlHidePersonKnown and cmlHoverShow { .ipc-page-section:has(a[href="#name_known_for"]):not(:hover) > div[data-testid="nm_flmg_kwn_for"] { display: none; } } /* -------------------------------------------------- */ if cmlHidePersonCredits and !cmlHoverShow { .celwidget[data-testid="Filmography"] .ipc-page-section > div:not(:first-of-type), .celwidget[data-testid="Filmography"] .ipc-page-section > .ipc-metadata-list { display: none; } } if cmlHidePersonCredits and cmlHoverShow { .celwidget[data-testid="Filmography"]:not(:hover) .ipc-page-section > div:not(:first-of-type), .celwidget[data-testid="Filmography"]:not(:hover) .ipc-page-section > .ipc-metadata-list { display: none; } } /* -------------------------------------------------- */ if cmlHideBoxOffice and !cmlHoverShow { .ipc-page-section[data-testid="BoxOffice"] > div[data-testid="title-boxoffice-section"] { display: none; } } if cmlHideBoxOffice and cmlHoverShow { .ipc-page-section[data-testid="BoxOffice"]:not(:hover) > div[data-testid="title-boxoffice-section"] { display: none; } } /* -------------------------------------------------- */ if cmlHideTechSpecs and !cmlHoverShow { .ipc-page-section[data-testid="TechSpecs"] > div[data-testid="title-techspecs-section"] { display: none; } } if cmlHideTechSpecs and cmlHoverShow { .ipc-page-section[data-testid="TechSpecs"]:not(:hover) > div[data-testid="title-techspecs-section"] { display: none; } } /* -------------------------------------------------- */ if cmlHideRelNews and !cmlHoverShow { .ipc-page-section[cel_widget_id="StaticFeature_News"] > div > .ipc-sub-grid { display: none; } } if cmlHideRelNews and cmlHoverShow { .ipc-page-section[cel_widget_id="StaticFeature_News"]:not(:hover) > div > .ipc-sub-grid { display: none; } } /* -------------------------------------------------- */ if cmlHideContrib and !cmlHoverShow { .ipc-page-section[data-testid="contribution"] > div:not(:first-of-type), .ipc-page-section[data-testid="contribution"] .ipc-title__description { display: none; } } if cmlHideContrib and cmlHoverShow { .ipc-page-section[data-testid="contribution"]:not(:hover) > div:not(:first-of-type), .ipc-page-section[data-testid="contribution"]:not(:hover) .ipc-title__description { display: none; } } } /* mainEnd */ } /* domainEnd */ @-moz-document domain("imdb.com") { /* --- Sidebar --- */ #cmlPlaceholder { display: none; } .ipc-page-wrapper--base .ipc-page-content-container--center .ipc-page-grid__item--span-1[data-test-id="right-rail-content-block"] .right-rail-more-to-explore { if cmlHideSingle and !cmlHoverShow { .ipc-slate-card { display: inline-flex; flex-direction: column-reverse; } .ipc-slate-card .ipc-slate--dynamic-width:has(.ipc-media) { display: none; } } if cmlHideSingle and cmlHoverShow { .ipc-slate-card { display: inline-flex; flex-direction: column-reverse; } .ipc-slate-card:not(:hover) .ipc-slate--dynamic-width:has(.ipc-media) { display: none; } } /* -------------------------------------------------- */ if cmlSideEditorial and !cmlHoverShow { div[data-testid="SidebarList-editorial"] > div:not(:first-of-type) { display: none; } } if cmlSideEditorial and cmlHoverShow { div[data-testid="SidebarList-editorial"]:not(:hover) > div:not(:first-of-type) { display: none; } } /* -------------------------------------------------- */ if cmlSideUserList and !cmlHoverShow { div[data-testid="SidebarList-user"] > div:not(:first-of-type) { display: none; } } if cmlSideUserList and cmlHoverShow { div[data-testid="SidebarList-user"]:not(:hover) > div:not(:first-of-type) { display: none; } } /* -------------------------------------------------- */ if cmlSidePolls and !cmlHoverShow { div[data-testid="SidebarList-polls"] > div:not(:first-of-type) { display: none; } } if cmlSidePolls and cmlHoverShow { div[data-testid="SidebarList-polls"]:not(:hover) > div:not(:first-of-type) { display: none; } } /* -------------------------------------------------- */ if cmlSideProjects and !cmlHoverShow { .projectsInDevelopment-section > div:not(:first-of-type) { display: none; } } if cmlSideProjects and cmlHoverShow { .projectsInDevelopment-section:not(:hover) > div:not(:first-of-type) { display: none; } } } /* sidebarEnd*/ } /* domainEnd */
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址