Skip to content

mk-pmb/mozilla-sessionstore-taburls-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mozilla-sessionstore-taburls

Extract the URLs of currently open tabs from a Firefox sessionstore backup.

Usage

var findTabUrls = require('mozilla-sessionstore-taburls');
fs.readFile(inputFile, function (err, lz4Buffer) {
  if (err) { throw err; }
  var tabUrls = findTabUrls(lz4Buffer, parseOpt);
  if (tabUrls.length < 1) { return; }
  console.log(tabUrls.join('\n'));
});

parseOpts

… is an optional options object which supports these options, all optional:

  • history:
    • true: Report all tab history entries.
    • false: Report only the history entry currently displayed in that tab.
    • other values: reserved for future features
  • prepareData: Should be a false-y value, or a function. In the latter case, the function is called with the decoded session data. If the function returns a true-y value, work with that instead of the original session data.

Known issues

  • Needs more/better tests and docs.

 

License

ISC

About

Extract the URLs of currently open tabs from a Firefox sessionstore backup.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published