aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Rizwan <omar@omar.website>2021-01-10 13:17:08 -0800
committerGitHub <noreply@github.com>2021-01-10 13:17:08 -0800
commit1c82184d68698453e6355a79e82e624b55554c5e (patch)
treed819817731c150e33cae7964d6b5f4f97223be10
parent1e7b1f8ad4a0d4be08e8420a80ab26d01d56fffc (diff)
parentdc9ab003ee8953bb22420e523908eee083063b71 (diff)
Merge pull request #47 from cdf1982/master
Save tab HTML source to file
-rw-r--r--extension/background.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/extension/background.js b/extension/background.js
index 179a2b8..129b956 100644
--- a/extension/background.js
+++ b/extension/background.js
@@ -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 = {};