Last active
June 10, 2019 16:34
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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