Git Product home page Git Product logo

capturepagestate's Introduction

Capture Page State

Get HAR logs, console logs, and screenshot to provide as much context as possible when reporting issues to developers. You can drop the HAR log file into the Network panel of any Chrome Dev Tools Window, and it will populate it.

Demo

Capture Page State Demo You need to have Chrome Dev Tools open for HAR log only.

Usage Instructions

This Chrome Extension is not published to the Chrome Web Store, you need to install it in developer mode. You can find those instructions here

  1. Click on Extension Icon
  2. Select what you want to capture
    1. Screenshot
    2. Console Logs
    3. HAR log
      1. Chrome Dev Tools needs to be open to get HAR log
  3. Click on Get Snapshot
    1. The items selected will now be downloaded, 1 file per item

Development

  1. Clone this repository.
  2. Open up Chrome and go to the chrome://extensions/ page (Window โ†’ Extensions).
  3. Enable developer mode (if it's not already).
  4. Click on Load unpacked extension.
  5. Select the folder for this extension.

Specifications

  • Getting Screenshot
    • Takes screenshot of active tab using Chrome Tabs API
  • Getting Console Logs
    • popup.js ==>background.js then Chrome Debugger API is used to get console logs for the active tab and download them using Chrome Downloads API
  • Getting HAR log
    • popup.js ==> background.js ==>devtools.js then Chrome DevTools API is used to get the HAR log chrome.devtools.network.getHAR() and downloaded using Chrome Downloads API

What I Learned

Keyboard Shortcut

Go to the bottom of the chrome://extensions/ page, click on Keyboard shortcuts and add the shortcut of your choice.

Credits

capturepagestate's People

Contributors

mrcoles avatar salhernandez avatar terrycojones avatar gleitz avatar slushman avatar jeremydw avatar tylerfawcett avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.