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.

Estas são as versões deste script em que o código foi atualizado. Mostrar todas as versões.

  • v. 2026-07-19 (4.6) 19/07/2026

    Added support for 4archive.org and 4chanarchives.com. Fixed Imgur-hosted images on 4chanarchives.com not loading. Fixed desuarchive view post functionality not working.

  • v. 2026-07-14 (4.5) 14/07/2026

    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.

  • v. 2026-05-28 (4.1) 28/05/2026

    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.

  • v. 2026-05-24 (4.0) 25/05/2026
  • v. 2026-05-24 (4.0) 25/05/2026

    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.

  • v. 2025-09-23 (3.85) 24/09/2025

    Fixed Bug with embedded videos not loading, and Added red borders for embedded media.

  • v. 2025-09-23 (3.8) 24/09/2025

    2025-09-23 (3.8): Vastly improved gallery loading performance by deferring the loading of videos and sound files until they are hovered over. 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.

  • v. 2025-01-12 (3.6) 12/01/2025

    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)

  • v. 2024-12-24 (3.5) 24/12/2024

    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").

  • v. 2024-12-22 (3.1) 23/12/2024

    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 or with /wsg/ archival sites)

  • v. 2024-12-15 (3.05) 15/12/2024

    Fixed bug with not being able to open settings, because old settings do not exist.

  • v. 2024-12-15 (3.0) 15/12/2024

    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.

  • v. 2024-08-09 (2.8) 10/08/2024

    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.

  • v. 2024-07-26 (2.7) 26/07/2024

    Fixed bug where spoilered messages were not identified as videos, when 4chanX is not installed.

  • v. 2024-07-26 (2.6) 26/07/2024
    • 2024-07-26 (2.6): 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.
  • v. 2024-07-26 (2.6) 26/07/2024

    2024-07-26 (2.6): 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.

  • v. 2024-06-08 (2.5) 07/06/2024

    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.

  • v. 2024-06-05 (2.0) 05/06/2024

    Added support for archive site warosu.org, reverse image search buttons, image/video filenames and media counter display, download buttons for video and audio (if available), gallery like keyboard navigation, darkened background on zoom, and performance optimizations. Removed play/pause button for webms with sound (supported by built in player).

  • v. 2024-06-05 (2.0) 05/06/2024

    Added support for archive site warosu.org, reverse image search buttons, image/video filenames and media counter display, download buttons for video and audio (if available), gallery like keyboard navigation, darkened background on zoom, and performance optimizations. Removed play/pause button for webms with sound (supported by built in player).

  • v. 2024-03-30 (1.6) 30/03/2024
  • v. 2024-03-29 (1.5) 29/03/2024

    Added Gallery for the Archived Section "https://boards.4chan.org/*/archive" which allows you to select multiple threads to view the media of at the same time.

  • v. 2024-03-26 (1.4) 26/03/2024
  • v. 2024-03-26 (1.3) 26/03/2024

    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.

  • v. 2024-03-26 (1.1) 26/03/2024
  • v. 2024-03-26 26/03/2024
  • v. 1.1 26/03/2024
  • v. 1.0 26/03/2024
  • v. 2024-03-26 26/03/2024