Title: Browser Screenshots
Author: Kevin Leary
Published: <strong>15 Tháng 10, 2012</strong>
Last modified: 30 Tháng 1, 2024

---

Tìm kiếm plugin

![](https://ps.w.org/browser-shots/assets/banner-772x250.png?rev=2550604)

Plugin này **chưa được cập nhật với 3 phiên bản mới nhất của WordPress**. Nó có 
thể không được hỗ trợ và bảo trì, và có thể xung đột với các phiên bản WordPress
mới nhất.

![](https://ps.w.org/browser-shots/assets/icon-128x128.png?rev=2550604)

# Browser Screenshots

 Bởi [Kevin Leary](https://profiles.wordpress.org/kevinlearynet/)

[Tải về](https://downloads.wordpress.org/plugin/browser-shots.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/browser-shots/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/browser-shots/#reviews)
 *  [Cài đặt](https://vi.wordpress.org/plugins/browser-shots/#installation)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/browser-shots/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/browser-shots/)

## Mô tả

Use the `[browser-shot]` shortcode to automate the process of taking website screenshots.
An icon is also added to the TinyMCE editor to make the shortcode creation process
easy.

The plugin uses the ‘mshots’ functionality, from WordPress.com, to automatically
take screenshots of websites. This function is free for non-commercial use.

The images are stored on the wordpress.com servers and are not saved onto your own
website. The images are cached for roughly 24 hours before being generated again.

#### Shortcode Preview

    ```
    // basic shot 600px wide
    [browser-shot url="https://link-to-website" width="600"]

    // shot with link to other website
    [browser-shot url="https://link-to-website" width="700" link="https://www.binarymoon.co.uk/"]

    // shot with caption (uses default WordPress caption styles)
    [browser-shot url="https://link-to-website" width="700"]Add Caption[/browser-shot]
    ```

#### Available Parameters

 * url (required) – the url of the link to shorten
 * width – the width of the image
 * height – the height of the image
 * alt – the image alt text
 * link – where the image links. Left blank it will point to the website where the
   screenshot is being taken
 * target – browser target. Set to _blank to open in a new window
 * class – add a class to the browsershots wrapper
 * image_class – change the default browsershots image class from alignnone to your
   chosen class
 * display_link (true or false – default true) to display a link in your screenshot
 * post_links (true or false – default false) to link to the permalink of the post
   the screenshot is on

#### Generating Screenshots with code

If you want to create screenshots in a theme using this plugin then you can do so
using the `BrowserShots::get_shot` method.

For example:

    ```
    <img src="<?php echo BrowserShots::get_shot( 'https://prothemedesign.com', 600, 450 ); ?>" />
    ```

Keep in mind that the plugin must be installed and activated for this to work.

The get_shot method has 3 parameters.

 1. The url.
 2. The width.
 3. The height.

The other parameters, from the shotcode, can be implemented manually when outputting
the html.

#### Multisite Compatibility

The _Browser Shots_ plugin is compatibly with WordPress Multisite, just use the 
[Network Activate](https://codex.wordpress.org/Create_A_Network#WordPress_Plugins)
feature to enable the shortcode on every site. If you only want to enable the shortcode
for a specific site, activate the plugin for that site only.

#### More…

 * The code can be found on [Github](https://github.com/BinaryMoon/browser-shots)
 * You can reach out to me with questions or problems on [Twitter](https://twitter.com/binarymoon)

## Ảnh màn hình

 * [[
 * New Gutenberg block.
 * [[
 * A view from inside of the WordPress TinyMCE editor.
 * [[
 * The formatted front-end view of generated screenshots.

## Khối

Plugin này cung cấp 1 khối.

 *   Browser Shots

## Cài đặt

 1. Install easily with the WordPress plugin control panel or manually download the
    plugin and upload the folder `browser-shots` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## Hỏi đáp

### How does Browser Shots Work?

Browser Shots is based on the MShots functionality built and used by WordPress.com.
It is [used with permission from Matt Mullenweg](https://www.binarymoon.co.uk/2010/02/automated-take-screenshots-website-free/).

### Is Browser Shots Free?

Yes. Since this service is run by Automattic this could change at any time.

### Why don’t the images display until I refresh the page?

The images are generated on an external server and take a little while to be created.
There is no way for the site to know if they have been created and so a loading 
image is shown.

To reload the image you can press the ‘refresh’ button that appears in the toolbar
when the shots block is selected. If the image is displayed on your website then
reloading the page is the only option.

### Can the images be saved to my server?

No. The images are generated by a third party servive and stored on their servers.
As such they control the images.

### Can I see the MShots code?

Yep. [The code for MShots id on Github](https://github.com/Automattic/mShots). Keep
in mind that this is an Automattic project so, whilst you can look at the code and
post bugs, it’s unlikely they will answer support questions. However, if you have
the techinical know-how you can fork the repository and make your own version.

## Đánh giá

![](https://secure.gravatar.com/avatar/e8341ba54b86f232e661f113c902529271d91b1956a4f496118cd5c120dbc847?
s=60&d=retro&r=g)

### 󠀁[Works](https://wordpress.org/support/topic/works-2108/)󠁿

 [pipi842](https://profiles.wordpress.org/pipi842/) 13 Tháng 6, 2023 1 trả lời

Are there plans to replace the mshots api or at least provide alternative? Keep 
up the good work, your plugin saves a ton of time.

![](https://secure.gravatar.com/avatar/9a91528deeb53161704f4fa1b82687f084fb9ea390704058ffc5a5e2e3578e10?
s=60&d=retro&r=g)

### 󠀁[Great screenshots plugin](https://wordpress.org/support/topic/great-screenshots-plugin/)󠁿

 [Terry J](https://profiles.wordpress.org/texasbiz/) 20 Tháng 7, 2022

Works just fine and have not had a single issue. Hope development continues, not
a better screenshots plugin in the repository. Thanks to the dev for releasing to
us!

![](https://secure.gravatar.com/avatar/31aad8cf541e79f80f678f4e9b1d97691d5a918bbcd6d5b919d192f0c08afc38?
s=60&d=retro&r=g)

### 󠀁[works like a charm, straight out of the box (y)](https://wordpress.org/support/topic/works-like-a-charm-straight-out-of-the-box-y/)󠁿

 [eLeXeM](https://profiles.wordpress.org/elexem/) 12 Tháng 6, 2022 1 trả lời

Thank you! 🙂

![](https://secure.gravatar.com/avatar/43e355d04c60b48cf9ece4ac18a88e11f0d01aa2719c4e8f785c4beb1901ebcd?
s=60&d=retro&r=g)

### 󠀁[Perfect](https://wordpress.org/support/topic/perfect-8131/)󠁿

 [koronavirusu](https://profiles.wordpress.org/koronavirusu/) 27 Tháng 1, 2021

Great plugin. Thanks

![](https://secure.gravatar.com/avatar/b22693a76a8fddfbab60db58d1799928c5a3c581dab5eed1b303c41f63f82b52?
s=60&d=retro&r=g)

### 󠀁[Too good to be true, and free!](https://wordpress.org/support/topic/too-good-to-be-true-and-free/)󠁿

 [Ropebu](https://profiles.wordpress.org/javalinex/) 27 Tháng 1, 2021

Awesome plugin, ideal for automatic websites. Using the php manual implementation
combined with custom fields is amazing and saves a ton of time.

![](https://secure.gravatar.com/avatar/b17f7925a299acb11b070557652fe539c997a756d1f4b6b96cd20f0edb158aa5?
s=60&d=retro&r=g)

### 󠀁[I like it](https://wordpress.org/support/topic/i-like-it-759/)󠁿

 [wasanajones](https://profiles.wordpress.org/wasanajones/) 3 Tháng 8, 2020 1 trả
lời

yep, recommneded

 [ Đọc tất cả 19 đánh giá ](https://wordpress.org/support/plugin/browser-shots/reviews/)

## Người đóng góp & Lập trình viên

“Browser Screenshots” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

 *   [ Kevin Leary ](https://profiles.wordpress.org/kevinlearynet/)
 *   [ binarymoon ](https://profiles.wordpress.org/binarymoon/)
 *   [ Ronald Huereca ](https://profiles.wordpress.org/ronalfy/)

“Browser Screenshots” đã được dịch qua 9 ngôn ngữ. Cảm ơn [những người tham gia dịch](https://translate.wordpress.org/projects/wp-plugins/browser-shots/contributors)
vì đóng góp của họ.

[Dịch “Browser Screenshots” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/browser-shots)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/browser-shots/), check out
[SVN repository](https://plugins.svn.wordpress.org/browser-shots/), hoặc theo dõi
[nhật ký phát triển](https://plugins.trac.wordpress.org/log/browser-shots/) qua 
[RSS](https://plugins.trac.wordpress.org/log/browser-shots/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

#### 1.7.7 – 22nd November 2021

 * Fix broken images (the image url moved – thanks @idanka for finding the fix).
 * Small tweaks and improvements to the UX
 * Update scripts and packages to the latest version.

#### 1.7.6 – 18th June 2021

 * Fix possible XSS vulnerability as reported by WPScan.

#### 1.7.5 – 27th January 2021

 * Fix variable comparison that could cause errors in some situations.
 * Add missing text domain for translations.

#### 1.7.4 – 15th July 2019

 * Add a $shortcode parameter to the shortcode_atts function call so that the shortcode
   properties can be filtered.
 * Added option to allow screenshot to link to the post’s URL.
 * Make get_shots static so it can be used outside of the shortcode/ gutenberg block.

#### 1.7.3 – 12th June 2019

 * Add PERMALINK as a link property. If you set the link url to PERMALINK then the
   url will point to the currrent page or post.
 * Improve the default alt text. Previously it would display the url for the screenshot,
   but this could be messy, and is not actually useful. Now displays “Screenshot
   from domain-name”.

#### 1.7.2 – 11th June 2019

 * Ensuring display_link is a boolean in the shortcode.
 * Code formatting and cleanup.

#### 1.7.1 – 11th June 2019

 * Add a new parameter display_link that allows you to disable the link around the
   screenshot. Defaults to true. Set to false to remove the link.
 * Add some placeholder text to the input fields to make it clearer what is expected.
 * Change the rel link property to a toggle for one click changes.

#### 1.7 – 8th June 2019

 * Add Gutenberg block for including Browser Shots.
 * Fix image alignment so that it works properly :).

#### 1.6 – 30th May 2019

 * Add rel property to shortcode so that links can include rel=”nofollow” or similar.
 * Fix output of target attribute.
 * Tidy codes.

#### 1.5.2 – 7th January 2017

 * Improve output html to reduce likelihood of html being modified by a plugin
 * Swap urlencode for rawurlencode
 * Switch to yoda conditions

#### 1.5.1

 * add two new class properties. One for the container, one for the image
 * lots of code tidying, and refactoring. Simpler, faster, and more secure
 * new tinymce icon that fits the style of the editor much better 🙂

#### 1.5

 * update localisation strings so that things can be translated more easily

#### 1.4

 * Update the website screen capture path. This ensures the code will work properly
   on secure domains
 * Add some additional value escaping for extra security

#### 1.3.2

 * Fix a couple of small javascript bugs (thanks again to Ciprian Dracea)

#### 1.3.1

 * Fix a couple of small bugs with the visual editor and add support for all shortcode
   parameters

#### 1.3

 * Make the visual editor work again (thanks to Ciprian Dracea for the report and
   the code help!)
 * add a new pop up box for the shortcode properties in visual editor mode

#### 1.2

 * Add ‘link’ attribute. Allows you to change the url that the screenshot links 
   to
 * Sanitize the height attribute and fix a small height related PHP error
 * Add support for captions
 * Add target attribute for opening links in new windows

#### 1.1

 * Add ‘height’ attribute to the TinyMCE prompts
 * Allow users to override ‘height’ attribute in [browser-shot] shortcode

#### 1.0

 * Initial public release to the WordPress plugin repository

## Meta

 *  Phiên bản **1.7.7**
 *  Cập nhật lần cuối **2 năm trước**
 *  Số lượt cài đặt **3.000+**
 *  Phiên bản WordPress ** 4.0 hoặc cao hơn **
 *  Đã kiểm tra lên đến **6.5.0**
 *  Ngôn ngữ
 * [Chinese (China)](https://cn.wordpress.org/plugins/browser-shots/), [Chinese (Taiwan)](https://tw.wordpress.org/plugins/browser-shots/),
   [Danish](https://da.wordpress.org/plugins/browser-shots/), [English (US)](https://wordpress.org/plugins/browser-shots/),
   [German](https://de.wordpress.org/plugins/browser-shots/), [Japanese](https://ja.wordpress.org/plugins/browser-shots/),
   [Russian](https://ru.wordpress.org/plugins/browser-shots/), [Spanish (Chile)](https://cl.wordpress.org/plugins/browser-shots/),
   [Spanish (Spain)](https://es.wordpress.org/plugins/browser-shots/), và [Spanish (Venezuela)](https://ve.wordpress.org/plugins/browser-shots/).
 *  [Dịch sang ngôn ngữ của bạn](https://translate.wordpress.org/projects/wp-plugins/browser-shots)
 * Thẻ
 * [blocks](https://vi.wordpress.org/plugins/tags/blocks/)[browser](https://vi.wordpress.org/plugins/tags/browser/)
   [browser shot](https://vi.wordpress.org/plugins/tags/browser-shot/)[generator](https://vi.wordpress.org/plugins/tags/generator/)
   [screenshot](https://vi.wordpress.org/plugins/tags/screenshot/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/browser-shots/advanced/)

## Đánh giá

 4.8 trên 5 sao.

 *  [  18 5-star reviews     ](https://wordpress.org/support/plugin/browser-shots/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/browser-shots/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/browser-shots/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/browser-shots/reviews/?filter=2)
 *  [  1 1-star review     ](https://wordpress.org/support/plugin/browser-shots/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/browser-shots/reviews/#new-post)

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/browser-shots/reviews/)

## Những người đóng góp

 *   [ Kevin Leary ](https://profiles.wordpress.org/kevinlearynet/)
 *   [ binarymoon ](https://profiles.wordpress.org/binarymoon/)
 *   [ Ronald Huereca ](https://profiles.wordpress.org/ronalfy/)

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/browser-shots/)