mirror of
https://github.com/osnr/TabFS.git
synced 2024-04-25 10:50:30 +02:00
Merge pull request #47 from cdf1982/master
Save tab HTML source to file
This commit is contained in:
commit
1c82184d68
|
@ -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…
Reference in a new issue