Skip to content

Instantly share code, notes, and snippets.

@liamg
Last active March 3, 2024 10:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save liamg/e505a85205743385c9dc to your computer and use it in GitHub Desktop.
Save liamg/e505a85205743385c9dc to your computer and use it in GitHub Desktop.
Export all lastpass passwords, including hidden. If you're sick of lastpass failing to fill inputs properly, just paste this in the console on the extension vault page.
var q, p = ['Username', 'Password', 'URL'], m = LPProxy.getAllModelItems(), o = [];
for(var i in m){
q = [];
for(var j in p) q.push([p[j], m[i]['get' + p[j]]()].join(': '));
o.push(q.join('<br/>'));
}
window.location.href="data:text/html;charset=utf-8," + escape(o.join('<hr/>'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment