MahdeenSky / 4chan Gallery

Published:

Version: 2024-03-30 (1.6)+7672b8d

Summary: 4chan grid based Image Gallery for threads that can load images, images with sounds, webms with sounds (Button on the Bottom Right)

License: MIT

1711457054296

Enhance your browsing experience on 4chan with the 4chan Gallery UserScript! This powerful script adds a convenient "Open Image Gallery" button to threads on all 4chan boards. 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).
  • Dark mode compatibility for a seamless browsing experience.
  • Resizable grid of media with scrollbars for easy navigation.
  • Image, GIF, and video playback with sound support (if available).
  • Play/pause, reset buttons for videos with sound.
  • 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).
  • "View Post" button to jump to the original post in the thread.
  • Close button to exit the image gallery.
  • Support for viewing media from multiple archived threads simultaneously (from the /archive page).
  • Lazy loading of media to load as many images/videos at once.
  • Tooltips to display the comment over the media in gallery (hover over it for a second)

Changelog:

  • 2023-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.
  • 2023-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.
  • 2023-03-26 (1.4): Fixed minor bug with loading WebM sounds when having 4chanX installed at the same time.
  • 2023-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.
  • 2023-03-26 (1.2): Fixed support for various 4chan boards.
  • 2023-03-26 (1.1): Supports Images, and WebMs, adds button for opening/closing gallery which displays a grid of images/webms.
  • 2023-03-26 (1.0): Script Creation.

Rating: 0