
Dev Helper
用户量:529大小:90.47KiB版本:v 2.4更新时间:2021-12-21
Dev Helper
Dev Helper 的使用方法详解,最全面的教程
Dev Helper 描述:
用户数:529
分类:开发者工具插件
扩展大小:90.47 KiB
最后更新时间:2021-12-21
版本:v 2.4
Dev Helper 插件简介:
这是来自Chrome商店的 Dev Helper 浏览器插件,您可以在当前页面下载它的最新版本安装文件,并安装在Chrome、Edge等浏览器上。
Dev Helper插件下载方法/流程:
点击下载按钮,关注“扩展迷Extfans”公众号并获取验证码,在网页弹窗中输入验证码,即可下载最新安装文件。
Dev Helper插件安装教程/方法:
(1)将扩展迷上下载的安装包文件(.zip)解压为文件夹,其中类型为“crx”的文件就是接下来需要用到的安装文件
(2) 从设置->更多工具->扩展程序 打开扩展程序页面,或者地址栏输入 Chrome://extensions/ 按下回车打开扩展程序页面
(3) 打开扩展程序页面的“开发者模式”
(4) 将crx文件拖拽到扩展程序页面,
完成安装如有其它安装问题,
请扫描网站底部二维码与客服联系如有疑问请参考:
https://www.extfans.com/installation/Dev helper is all in one development and profiling extension for Google Chrome which has the following features:
- Profiling webpages and drawing charts showing loading time for all assets, split by domain (including time till the first byte received)
- Set up rewrite rules to override request and response urls, allowing developers to test without actually deploy new code.
Developers could override, add or replace request and response headers to test different scenarios. For example adding 'Access-Control-Allow-Origin: *' in the response header section will resolve cross domain script blocking.
Another way to use it is to replace asset or script (JavaScript and CSS) with local copy. This way the developer could make changes and test the functionality without deployment.
1.Install the extension from chrome app store.
2. Open page’s source code, and find the script tag, that you want to re-write.
3. Copy the code, and host it locally
4. Set up rewrite rule to load this file from your local web host
Note, keep in mind that Match url is actually a regex so any regEx character should be escaped!
For example if you want to match http://mysite.com/global.js?version=1 and redirect it to http://localhost?version=1
You could do this:
Match url: http:\/\/mysite\.com\/global.js?(.*)
Replacement URL: http://localhost?($1)
The $1 will replace all query string parameters in the replacement url with these from the original url.
- setting up rewrite rules to load assets from different locations.
For example a developer could write a regular expression pattern to match all JavaScript files in particular website where he/she is working on, and load them from their local host. This way active development could be done in real time, and new features could be tested before deploying to production. This method is also useful to debug a production issues.
example: if developer wants to test how the new code will affect the production website: http://www.mysite.com where all Java Script comes from: http://mysite.com/scripts/all_java_script.js file, they could write a rule that will match 'http://mysite.com/scripts/all_java_script.js' and load it from the localhost 'http://localhost/all_java_script.js'
- Setting proxy rules that match different Regular expression patterns.
Developers could write different matching patterns for different proxy rules.
- Script injection allowing to add new CSS or Java Script to a website for testing purposes.
Detailed instructions and examples of how to use it could be found here: https://www.toni-develops.com/a-homepage-section/projects/using-dev-helper-chrome-extension-for-local-development/