Last active
May 16, 2016 22:49
-
-
Save aflashyrhetoric/182ba09ef5572e3c48442c58a82a2746 to your computer and use it in GitHub Desktop.
Changes names on messenger.com.
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
// Gets all the names | |
var names = document.getElementsByClassName("_1ht6"); | |
var nameHeaders = document.getElementsByClassName("_3oh-"); | |
// New name variable, leave empty to delete names (not recommended) | |
var newName = ""; | |
// Changes names to newName | |
[].slice.call(names).forEach( function ( name ) { name.innerHTML = newName;}); | |
// Changes nameHeaders and conversation messages to John Doe | |
[].slice.call(nameHeaders).forEach( function ( name ) { name.innerHTML = newName;}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment