diff options
author | cdf1982 <cdf1982@users.noreply.github.com> | 2021-01-10 20:59:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-10 20:59:42 +0100 |
commit | dc9ab003ee8953bb22420e523908eee083063b71 (patch) | |
tree | d819817731c150e33cae7964d6b5f4f97223be10 | |
parent | 1e7b1f8ad4a0d4be08e8420a80ab26d01d56fffc (diff) |
Save tab HTML source to file
-rw-r--r-- | extension/background.js | 1 |
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 = {}; |