4chan Gallery

4chan grid-based image gallery with zoom mode support for threads that allows you to browse images, and soundposts (images with sounds, webms with sounds) along with other utility features.

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

Autore
SkAnon
Installazioni giornaliere
2
Installazioni totali
1.875
Valutazione
11 3 0
Versione
2026-07-19 (4.6)
Creato il
26/03/2024
Aggiornato il
19/07/2026
Dimensione
137 KB
Licenza
GNU GPLv3
Applica a

4chan Gallery GIF

Enhance your browsing experience on 4chan and it's various archival sites/mirrors with the Ultimate 4chan gallery script! This powerful script adds a convenient "Open Image Gallery" button to threads on these imageboards. When clicked, the button opens an image gallery that displays all images, GIFs, and videos (with or without sound) from the thread in a responsive grid format, making it easy to view and navigate through the media content.

Key Features:

  • Automatically detects and loads media content from the thread, including images, GIFs, and videos (WebM/MP4).
  • Automatically opens and closes the gallery using the "i" key (customizable) or by clicking outside the gallery.
  • Supports archival sites "warosu.org", "archive.palanq.win", "archived.moe", "archive.4plebs.org", "desuarchive.org", "thebarchive.com", "archiveofsins.com", "4archive.org", and "4chanarchives.com".
  • Fully themed UI with the "One Dark Pro Monokai Darker" color scheme, featuring glassmorphism, smooth animations, and a premium modern design.
  • Resizable grid of media with scrollbars for easy navigation.
  • Image, GIF, and video playback with sound support (if available).
  • Play/pause button for images with sound (sound posts) + Play sound on hover enabled.
  • Ability to toggle between "All" mode (images, GIFs, and videos) and "WebM & Images with Sound" mode.
  • Option to enable auto-play and loop for WebMs without sound (like GIFs).
  • Bookmarking system to save favorite media across threads. Bookmarked items are automatically archived to Catbox for long-term preservation.
  • Bookmarks view to browse all saved bookmarks in a dedicated grid with metadata (post ID, thread ID, date, and comment preview).
  • Search & filter bar to search the gallery by filename, comment text, or URL in real-time. Matching results are sorted to the top.
  • AI image metadata viewer — extract and display generation metadata (Stable Diffusion, NovelAI, ComfyUI prompts/parameters) from PNG images via EXIF, PNG tEXt chunks, and steganographic encoding. Includes a "Copy Metadata" button.
  • Scroll wheel zoom & click-drag pan in zoom mode for detailed image inspection.
  • "View Post" button to jump to the original post in the thread.
  • Support for viewing media from multiple expired threads simultaneously (from the /archive page).
  • Reverse image search buttons (SauceNAO, Google Lens, Yandex) in zoom mode.
  • Image/video filename display at the top-left corner in zoom mode.
  • Image/video counter over total display at the bottom-right corner in zoom mode.
  • Download buttons for the current image/video and associated audio file (if available) in zoom mode, powered by GM_download with blob fallback.
  • Keyboard navigation (left and right arrow keys) to move between images/videos in zoom mode. Escape key to close zoom and gallery.
  • Loads thumbnails initially + Lazy loading of media for better performance.
  • Tooltips to display the comment over the media in the gallery (hover over it for a second).
  • Allows you to merge and download soundposts (video/image + audio) in one file with a special proxy.
  • Customizable grid layout settings (number of columns and cell height) + Onscreen arrow buttons for navigation in zoom mode.
  • Support for embedding external media links (catbox/pixstash) from post comments, with a purple border to distinguish them.
  • Button to scroll to the last image in the gallery (dynamically toggles to "Scroll to Top" when at the bottom).
  • Drag and drop support with cells in the gallery to rearrange them.
  • Media count indicator showing total loaded media at the bottom of the gallery.
  • Cross-site settings persistence using GM_getValue/GM_setValue (with automatic migration from localStorage).
  • Loading spinner animation while the gallery is fetching media.

Changelog:

  • 2026-07-19 (4.6): Added support for 4archive.org and 4chanarchives.com. Fixed Imgur-hosted images on 4chanarchives.com not loading. Fixed desuarchive view post functionality not working.

  • 2026-07-14 (4.5): Massive performance and stability update. Implemented thread caching in-memory with post-count delta invalidation for instant subsequent loading. Optimized the steganography decoder with early-exit signature checking to eliminate main thread freeze. Centralized event listeners using Event Delegation on the grid container, reducing memory overhead. Added purely event-driven, buffer-safe soundpost synchronization and paused all background grid media during Zoom mode to prevent double-playback clashing. Made CPU-intensive backdrop blur optional through the new "Enable_Backdrop_Blur" setting, and added content-visibility CSS containment to cell layouts. Fixed button visited state style overrides to prevent link buttons from turning purple after clicks. Fixed Desuarchive redirect loops, added programmatic smooth-scrolling target resolution on "View Post", and added search debouncing. Improved the "Auto Play Webms" button behavior to keep videos visible and playing after leaving hover when enabled.

  • 2026-05-28 (4.1): Fixed bug with grid-resizing trying to fit all the cells into the grid at once. Added change-log popup moving forward with updates to tell the user of version changes/feature updates.

  • 2026-05-24 (4.0): Major refactor and redesign. Complete rewrite of the codebase with a modular architecture using centralized state management, DOM helper functions (h(), btn(), btnLink()), and CSS class-based styling. Introduced a premium "One Dark Pro Monokai Darker" theme with glassmorphism effects, smooth animations (gcFadeIn, gcSpinIn), and a polished modern UI throughout. Added a bookmarking system with per-media ★/☆ toggle, persistent cross-site storage via GM_getValue/GM_setValue, automatic Catbox archival of bookmarked media, and a dedicated bookmarks grid view with metadata cards. Added a real-time search/filter bar to search media by filename, comment, or URL. Added an AI image metadata viewer that extracts and displays generation prompts/parameters from PNG files (supports Stable Diffusion A1111, NovelAI, ComfyUI, and SillyTavern character cards) using EXIF data, PNG tEXt/iTXt chunks, and steganographic encoding (via ExifReader + Pako libraries). Added scroll wheel zoom and click-drag panning for images in zoom mode. Added Escape key support for closing gallery and zoom. Migrated settings storage from localStorage to GM_getValue/GM_setValue for cross-site persistence with automatic migration. Improved rendering performance with DocumentFragment batching. Added media count indicator, loading spinner, and dynamic scroll-to-top/bottom toggle button. Improved download system with GM_download and blob fallback. Purple-bordered cells for embedded external media. Many UI/UX refinements including themed settings modal, bookmark info cards, and consistent button styling.

  • 2025-09-23 (3.8): Vastly improved gallery loading performance by deferring the loading of videos and sound files until they are hovered over (Fixed Mass Loading of Videos). Added a new setting to force load Catbox images as WebP for faster loading times. Integrated a more robust download system for media files using GM_download. Added red border for embedded media from links.

  • 2025-01-12 (3.6): Added support for mp4s as videos, Fixed support for many archival sites. Fixed many bugs regarding embedding of video links for catbox/pixstash, fixed styling bug for embedded link media, added thumbnail for video embedded links. Added ability to close gallery by clicking outside of it. Fixed bug with not being able to open gallery using keybind without clicking the open gallery button once. Added new setting which when toggled on, hides the open gallery button (Warning, you can only open the gallery using the keybind "i" by default)

  • 2024-12-24 (3.5): Added drag and drop support with cells in the gallery (to rearrange them), and massive performance boost in reloading gallery when it has loaded initially. Fixed bug with not conserving the last scroll position when pressing viewPost buttons. Added new setting which allows to change the key to open the gallery (default is "i").

  • 2024-12-22 (3.1): Added Open button to videos (opens video in new tab to get over on site loading rate limits), and added a new setting called "Strictly Load GIFs As Thumbnails On Hover" which loads GIFs as thumbnail images only (useful for saving bandwith on GIFs or with /wsg/ archival sites)

  • 2024-12-14 (3.0): Added settings for customizable grid layout (number of columns and cell height), onscreen arrow buttons for navigation in zoom mode (can be toggled), support for embedding external media links (catbox/pixstash) from post comments, and a button to scroll to the last cell in gallery. Added support for archival sites "archive.4plebs.org", "desuarchive.org", "thebarchive.com", and "archiveofsins.com" (Overall system to add archive sites easily). Minor layout changes and bug fixes.

  • 2024-08-09 (2.8): Added Placeholder image "Open Zoom Mode" to open zoom made, even when there are no images in the grid. Fixed bug with deleted warosu.org posts, where they don't show up. Added support for find mode in archived sites.

  • 2024-07-26 (2.7): Added View Post Button within Zoom Mode, and a new experimental tool (Download Encoded Sound Post button) that uses my 4chan encoder proxy to merge videos/images and audio together into one video, to be downloaded (Limited to < 4 minutes), which is experimental because it might be removed, depending on how used it is. Fixed a bug where thumbnails of videos don't show up in Zoom Mode. Fixed bug where spoilered messages were not identified as videos, when 4chanX is not installed.

  • 2024-06-08 (2.5): Zooming/browsing through images on the zoomed mode, now loads the high res version of the image permanently. Implemented dedicated settings menu (top right in gallery). Loads thumbnails by default (to load faster, can be disabled by checking high res images only in settings). Gallery by default now loads atleast 3 columns and 2 rows. Added support for archival sites "archived.moe" and "archive.palanq.win". Close button in gallery now moved to the bottom right (from top-right). Fixed bugs where pressing "i" opens gallery even when typing a reply. View post button (was broken) now redirects to the exact comment on threads, even on the /archive page.

  • 2024-06-05 (2.0): Added zoom mode (Zooms the image/gif by left clicking them). Added support for archive site "warosu.org", reverse image search buttons (saucenao, google lens, yandex), image/video filenames and media counter over total display, download buttons for video and audio (if available), gallery like keyboard navigation (using left and right keys in zoom mode), darkened background on zoom, and performance optimizations. Removed play/pause button for webms with sound (now supported by built in player). Fixed support with barebones 4chan, 4chanX and 4chanXT scripts.

  • 2024-03-30 (1.6): New Improved UI Design, added video thumbnails, Implemented Lazy Loading for Images/Videos which optimizes loading of mass number of media, added Tooltips with the comments embedded in the actual post, videos are unloaded until you hover over them.

  • 2024-03-29 (1.5): Added Gallery for the Archived Section at "https://boards.4chan.org/*/archive" which allows you to select multiple threads to view the media of at the same time, using Checkboxes.

  • 2024-03-26 (1.4): Fixed minor bug with loading WebM sounds when having 4chanX installed at the same time.

  • 2024-03-26 (1.3): Added button for toggling gallery of only WebMs, and another button for autoplaying/looping webms without sound (Turns off play on hover while toggled). Adds ability to seek/change duration bar on WebMs with audio, to sync the audio automatically. Retains scrollbar position, and gallery size upon closing gallery, until you go to another thread, and other major code improvements/optimizations.

  • 2024-03-26 (1.2): Fixed support for various 4chan boards.

  • 2024-03-26 (1.1): Supports Images, and WebMs, adds button for opening/closing gallery which displays a grid of images/webms.

  • 2024-03-26 (1.0): Script Creation.