
外掛標籤
開發者團隊
原文外掛簡介
Go to Tools > UXL Screenshot Generator and press “Generate Screenshot”. The front
page is shown in a 1200 x 900 browser viewport, converted to a JPG and added to
the Media Library. The image contains the web page only: no browser window,
toolbars, scrollbars or WordPress admin bar.
The plugin is self-contained. It does not use any external service or
third-party library: the page is rendered by the administrator’s own browser
using the script in assets/admin.js, and the finished image is uploaded to this
site.
Only administrators (users who can “manage_options” and “upload_files”) can use
the tool.
How it works
The front page is loaded in an iframe sized 1200 x 900. For this request the
admin bar is hidden and the page is rendered as a logged-out visitor sees it.
The part of the page inside the viewport is copied together with the styles
the browser has computed. Images and web fonts are embedded.
The copy is painted to a canvas, exported as a JPG and uploaded.
Notes and limitations
Use a current desktop version of Chrome, Edge or Firefox.
The dashboard and the front page must be on the same address (same domain and
same http/https), otherwise browsers forbid reading the page.
Content inside embedded frames (YouTube players, maps, etc.) cannot be read by
a browser script and is shown as an empty box of the same size.
Images, fonts and stylesheets hosted on another domain that the browser may
not read directly are fetched by this site itself so they can be included.
Anything a visitor would see on arrival (for example a cookie banner) is part
of the screenshot.
Filters
uxl_screenshot_generator_render_as_visitor (bool, default true)
uxl_screenshot_generator_jpeg_quality (int 1-100, default 90)
uxl_screenshot_generator_settle_delay (int milliseconds, default 800)
