wingleung/save-page-state
关于
A chrome extension to save the state of a page for further analysis
开发工具实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
Save Page State
A browser extension to save the state of a page for further analysis
Highlights
Install
Install the extension from the chrome web store or firefox add-ons.
Or create a custom extension with this repo with limited access permission
Customize
Restrict Access Permission
In manifest.json (/src/manifest.json), replace <all_urls> with your own project URL pattern you wish to save the page states from.
{
...
"content_scripts": [
{
"matches": ["<all_urls>"], // <- change this to your url pattern
"js": ["js/content.js"]
}
],
"permissions": ["activeTab", "pageCapture", "<all_urls>"] // <- change this to your url pattern
...
}
Install dependencies
npm i
Build
npm run build
Builds to /build/prod
Publish
Chrome
Create a zip file from /build/prod/chrome
upload it to the chrome web store.
Firefox
Create a zip file from /build/prod/firefox
upload it to the firefox developer hub.
Development
npm run dev:chrome // builds to /build/dev/chrome
npm run dev:firefox // builds to /build/dev/firefox
Features
DOM Snapshot
An HTML file containing the state of the DOM.
MHTML file (chrome only for now)
Note Firefox doesn't support saving an MHTML file natively yet.
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
- browser: browser
- browserVersion: browser version
- os: operating system
Maintainer
探索相关项目
加载中…
