Google Material Design Resizer Chrome 插件, crx 扩展下载

 收录于6年前 阅读数 77

扩展ID: mkmgkfcdbabajchggfiebcaoghcajmki

Overlay current page in Google Resizer tool (https://material.io/resizer/). HTTPS only.Preview your page at different breakpoints (desktop, mobile, tablet) in the new interactive viewer from Google. And without even opening a new tab!

UPDATED TO WORK WITH HTTPS.

It also works with localhost / 127.0.0.1 URLs, perfect when developing locally!

USAGE
Click the button, and an overlay of Google Material Design Resizer (https://material.io/resizer/) with the current URL loaded will be displayed.
Click again to hide the overlay and get back to your website.

REQUIRES HTTPS
The extension now supports HTTPS pages.
Actually, it's more than that: Google Resizer now *requires HTTPS pages*. Using the extension (or directly the Google Resizer website) on an HTTP-only website will make Google Resizer enter an infinite refresh loop.

This is due to Google Resizer forcing the `Upgrade-Insecure-Requests` header (https://developers.google.com/web/fundamentals/security/prevent-mixed-content/fixing-mixed-content#upgrading_insecure_requests), which forces any HTTP resource to be loaded over HTTPS. This directive *cascades to iframes*, meaning that non-HTTPS page will never be loaded by Google Resizer tool.

As most websites are now available over HTTPS, the main issue with that is local development.

To make your local pages available over HTTPS, you can either:
- enable HTTPS on your local server. E.g see the [`https` option in BrowserSync](https://browsersync.io/docs/options#option-https)
- use an SSL proxy like [ngrok](https://ngrok.com/docs#bind-tls).

FEEDBACK
Provided "as is".
It may still have bugs, please report them on https://github.com/julienma/google-design-resizer-chrome-extension/issues

NOTE

This is not affiliated in any way with Google.
Some materials are © Google, most notably the source picture (https://material.io/resizer/static/material-io-nav/static/images/resizer_dark.svg) used for the icon and the website (https://material.io/resizer/) loaded within the frame.
名称 Google Material Design Resizer
插件标识 mkmgkfcdbabajchggfiebcaoghcajmki
平台 Chrome
评分 0
评分人数 12
插件主页

作者 Julien Ma
版本号 0.1.0
大小 36.43 KB
官网下载次数 2000
分类 查看更多 web开发 分类下的扩展插件
下载地址
更新时间 2017-07-13 00:00:00
举报
回复

大家在找这些插件