This app runs inside the BotSurf browser. Don't have it yet? Get the app or extension now!

Universal Image Lazy-Load Force-Reveal

Utilities · All
0 installs · Verified BotGentz app
Launch App
Opens in BotSurf — try it free, no account needed.
CategoryUtilities
PlatformAll
Pricing Free
Installs0
Download BotSurf to use — free
No account needed for free apps. Once BotSurf is open, find this app in Apps from the + menu.

About this app

WHAT IT DOES

This script scans the page for images with lazy-loading attributes—loading="lazy", data-src, data-srcset, data-original, and other common lazy-loading patterns—then forces them to load immediately by updating their src attributes with the corresponding lazy-load counterparts. It displays a floating panel showing a summary of images found, images successfully revealed, images that failed to load, and pending images. A "Reveal All" button triggers loading all detected lazy images, and the panel tracks successful reveals and failures. Users can toggle auto-reveal on page load, export the image list as CSV, and reset images to their original lazy-load state. The panel also shows a list of detected images with their alt text and status indicators.

WHERE IT RUNS

Works on any webpage with lazy-loaded images—content-heavy sites, e-commerce, blogs, news sites, or any page using lazy-loading for performance. The script detects images with loading="lazy", data-src attributes, and other common patterns, making it compatible with most modern websites.

HOW TO USE

The panel appears automatically when you visit a page. It detects lazy-loaded images and shows a summary with total, revealed, failed, and pending counts. Click "Reveal All" to force all detected lazy images to load immediately—the panel updates with the results. Enable "Auto-reveal on load" to automatically reveal images when the page loads. The image list shows detected images with their alt text, attribute used, and status. Click "Reset Images" to revert all revealed images back to their original lazy-load state. Export the full image list as CSV with alt text, original source, source URL, attribute used, and status. The "Clear History" button removes stored snapshots for the current domain. The panel automatically saves a snapshot each time you reveal images, building a history of lazy image detection over time.

TECHNICAL MECHANISM: MULTI-PASS LAZY-LOAD DETECTION WITH ATTRIBUTE MAPPING AND FORCED REVEAL

The script uses a comprehensive detection strategy. First, it scans all img elements on the page and checks for lazy-loading indicators: loading="lazy" attribute, class names containing "lazy" or "lazyload", and data attributes (data-src, data-srcset, data-original, data-lazy, data-src-lg, data-src-md, data-src-sm, data-src-lazy, data-lazy-src, data-src-url, data-image). It also checks if the current src is a placeholder (contains "placeholder," "loading," "blank," "empty," or is empty). For each detected lazy image, the script determines the appropriate source URL from the data attribute, tracks which attribute was used, and determines if srcset should be used. The reveal function updates the image's src or srcset attribute with the lazy source, removes all lazy-load attributes, removes the loading="lazy" attribute, and strips lazy-related classes. It also dispatches load and images-loaded events to notify the page. The reset function restores the original src, re-adds lazy-load attributes, restores loading="lazy", and re-adds lazy classes. Each snapshot stores the image list with statuses, capped at 30 entries per domain.

THE PANEL

The image revealer appears in a draggable, resizable panel that remembers its position per site. The panel shows summary stats, a list of detected images with statuses, and control buttons. Drag by the header to reposition, collapse to a compact icon with a click, and resize using the bottom-right corner. The panel snaps to screen edges for tidy placement and closes with the Escape key. All settings—auto-reveal toggle and panel position—persist per website using GM_setValue, so your view returns exactly as you left it.

PLEASE NOTE

This script requires the free BotGentz extension to run. The script modifies image src attributes, which may cause images to load that were intentionally lazy-loaded for performance reasons—use responsibly on bandwidth-limited connections. The reset function restores images to their original state but may not work perfectly if the page's JavaScript modifies images after the reveal. The script detects most common lazy-loading patterns but may not detect custom implementations. All data is stored locally in your browser via GM_setValue and never transmitted. The reveal action may not work for images loaded via JavaScript frameworks that manage image loading independently.

Similar Apps

Log in to BotGentz

Suggest an App

Tell us what you'd find useful — if we build it, we'll email you the moment it's ready.