GithubHelp home page GithubHelp logo

neuroradiology / save-page-state Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wingleung/save-page-state

0.0 3.0 0.0 76 KB

A chrome extension to save the state of a page for further analysis

License: MIT License

JavaScript 100.00%

save-page-state's Introduction



Save Page State

Save Page State



A chrome extension to save the state of a page for further analysis

Chrome Web Store Software License

Highlights

Install

Install the chrome extension from the chrome web store.

Or create a custom chrome extension with this repo with limited access permission

Customize

Restrict Access Permission

In manifest.json (/src/manifest.json), replace the *://*/* URL pattern with your own project URL you wish to save the page states from.

{
	...
	"content_scripts": [
		{
			"matches": ["*://*/*"], // <- change this url pattern
			"js": ["js/content.js"]
		}
	],
	"permissions": ["activeTab", "pageCapture", "*://*/*"]  // <- change this url pattern
	...
}

Install dependencies

npm i

Build

npm run build

Builds to /build/prod

Publish

Create a zip file from /build/prod and upload it to the chrome web store.

Features

DOM Snapshot

An HTML file containing the state of the DOM.

MHTML file

An MHTML page with encapsulated resources, so you could immediately check the layout by opening the MHTML file in Chrome.

Screenshot

A PNG image of the viewport.

Metadata

Text file with extra metadata useful for debugging with the exact same state.

  • height: viewport height
  • width: viewport width
  • incognito: is page loaded in incognito mode
  • status: page loading status
  • title: page title
  • url: page URL
  • chromeVersion: chrome version

Maintainer

Wing Leung

save-page-state's People

Contributors

wingleung avatar

Watchers

 avatar  avatar  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.