mirror of
https://github.com/osnr/TabFS.git
synced 2026-03-14 21:15:44 +01:00
Save tab HTML source to file
This commit is contained in:
parent
1e7b1f8ad4
commit
dc9ab003ee
1 changed files with 1 additions and 0 deletions
|
|
@ -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 = {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue