# Chrome Tricks
# Design mode
Chỉnh sửa text trên trang web :v
document.designMode = "on" || "off";
# console
# Table để in data đẹp hơn =))
console.table(object);
# Đo thời gian, benchmark đồ
console.time('myTime'); //Starts the timer with label - myTime
for ( let i = 0; i < 100000; ++i ) {
// do sutff
}
console.timeEnd('myTime'); //Ends the timer with Label - myTime
Output
myTime: 1.301025390625ms
# Print mode
Bật chế độ print mode để style... chứ Ctrl + P riết chắc mệt mỏi
Bài viết này (opens new window)
Cách làm
- Bước 0: Bật developer tool lên, không biết thì... đi ngủ thôi ... xỉn roài
- Bước 1:
Command+Shift+P (Mac)hoặcControl+Shift+P (Windows, Linux, Chrome OS) - Bước 2: Nhập
RenderingchọnShow Rendering - Bước 3: Tại tab render
Emulate CSS mediachọnprint.
# Chặn 1 resource
- Bước 1:
Command+Shift+P (Mac)hoặcControl+Shift+P (Windows, Linux, Chrome OS) - Bước 2: Chọn
Request Blocking - Bước 3:
+Thêm pattern
# Extensions
Tiện ích
AdBlock: chặn quảng cáo hohoChecker Plus for Gmail™: notification cho emailHola Free VPN Proxy Unblocker: đổi IPForm Filler: Tự fill data vào formEmoji Keyboard - Emojis For Chrome: Icon FontJ2TEAM Security: bcs bảo vệ bản thân =))Google Translate: đọc sách báo j đó, double click dịch cho nhanh
Hình ảnh
Copyfish: 1 công cụ OCR tách chữ từ hình ảnhFull Page Screen Capture: chụp full màn hìnhImage Downloader: tải ảnh từ trang, khỏi inspect html các kiểu
Inspect
Wappalyzer: Kiểm tra web xây dựng bằng công nghệ gìWhatFont: tìm font đang sử dụngPage Ruler: đo đạc các kiểu
Developer
PerfectPixel by WellDoneCode (pixel perfect): Dùng so sánh design với hiện tạiCustom JavaScript for websites: Thêm JS vào websiteSEOQuake: Công cụ hỗ trợ SEO, kiểm tra Google Index, hạng Alexa, ...Checkbot: SEO, Web Speed & Security Tester: kiểm tra đủ thứJSONView: Response trả về JSON thì tự format cho đẹpPostman: Tạo RESTful API requestPostman Interceptor: để kết nối browser với PostmanModHeader: sửa Param HEAD cho requestVue.js devtools: for Vue dev