Skip to content

Instantly share code, notes, and snippets.

@jaredwilli
Last active November 8, 2017 00:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaredwilli/013a74dbdd6d630a254ee1a12f08c2c8 to your computer and use it in GitHub Desktop.
Save jaredwilli/013a74dbdd6d630a254ee1a12f08c2c8 to your computer and use it in GitHub Desktop.
Unmask Pendo email addresses for Cloudlock NPS report CSV
// use comma delimiter tool
// https://delim.co/#
// After setting an array var a; with the array of user emails run this script to unmask
// the emails, console.log them and automatically copy them to clipboard.
var r = [];
for (var i = 0; i < a.length; i++) {
var email = a[i].split('user-')[1];
r.push(window.atob(email.split('@')[0]));
}
console.log(r);
copy(r);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment