Last active
November 8, 2017 00:10
-
-
Save jaredwilli/013a74dbdd6d630a254ee1a12f08c2c8 to your computer and use it in GitHub Desktop.
Unmask Pendo email addresses for Cloudlock NPS report CSV
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
// 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