Merge pull request #47 from cdf1982/master

Save tab HTML source to file
This commit is contained in:
Omar Rizwan 2021-01-10 13:17:08 -08:00 committed by GitHub
commit 1c82184d68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -227,6 +227,7 @@ router["/tabs/by-id"] = {
router["/tabs/by-id/*/url.txt"] = withTab(tab => tab.url + "\n", buf => ({ url: buf }));
router["/tabs/by-id/*/title.txt"] = withTab(tab => tab.title + "\n");
router["/tabs/by-id/*/text.txt"] = fromScript(`document.body.innerText`);
router["/tabs/by-id/*/source.html"] = fromScript(`document.body.innerHTML`);
})();
(function() {
let nextConsoleFh = 0; let consoleForFh = {};