Skip to content

Instantly share code, notes, and snippets.

@janelin612
Last active June 10, 2019 16:34
const location="C:/Users/YOUR_NAME/AppData/Roaming/Mozilla/Firefox/Profiles/xxx.xxx";
var sqlite3 = require('sqlite3').verbose();
var db = new sqlite3.Database(location+'/places.sqlite');
db.serialize(function () {
db.each("DELETE FROM moz_places WHERE visit_count <=2 AND last_visit_date < CAST(strftime('%s', datetime('2019-03-01')) AS INT)*1000000",
function (err, row) {
console.log(row);
}
);
});
db.close();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment