Last active
June 17, 2016 05:21
-
-
Save thewarpaint/4fda703f1ba10df6d2ba0d4da4fb8fd3 to your computer and use it in GitHub Desktop.
Anonymizr
This file contains hidden or 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
var Anonymizr = { | |
people: [ | |
{ name: "Abradolf Linkler", username: "alinkler" }, | |
{ name: "Beatriz Viterbo", username: "bv1945" }, | |
{ name: "Charles Burns", username: "charlesb" }, | |
{ name: "Dr. Strangelove", username: "drstrnglv" }, | |
{ name: "Edward Meechum", username: "em_hoc" }, | |
{ name: "FN-2187", username: "fn2187" }, | |
{ name: "Gertie Barrimore", username: "gertie_b" }, | |
{ name: "Holden Caulfield", username: "hcaulfield" }, | |
{ name: "Inigo Montoya", username: "inigo_tpb" }, | |
{ name: "John Doe", username: "johndoe7" }, | |
{ name: "Karellen", username: "earthsupervisor" }, | |
{ name: "Laurie Juspeczyk", username: "sspectre_ii" }, | |
{ name: "Marty McFly", username: "bttf" }, | |
{ name: "Nigel Godrich", username: "lp09" }, | |
{ name: "Paul Allen", username: "dorsialover" }, | |
{ name: "Robert Paulson", username: "whatsyrnameagain" }, | |
{ name: "Thirteen", username: "li3s" }, | |
{ name: "Vincent Vega", username: "footmaster" }, | |
{ name: "Walt Whitman", username: "_willy_wonka_" } | |
], | |
// Sites | |
twitter: function () { | |
// .account-group: | |
// .account-group-inner .fullname, .fullname | |
// .account-group-inner .username span.js-username, .username b | |
// .QuoteTweet-originalAuthor: | |
// .QuoteTweet-fullname | |
// .QuoteTweet-screenname | childNodes[1] | |
// .js-retweet-text: | |
// .js-user-profile-link b | " Retweeted" | |
// .conversation-header: | |
// .uncollapse | |
var avatars = document.querySelectorAll('.avatar, .DashboardProfileCard-avatarImage'), | |
accountGroups, | |
profileCard, | |
containers, | |
username, | |
i; | |
for (var i = 0; i < avatars.length; i++) { | |
this.blur(avatars[i]); | |
} | |
accountGroups = document.querySelectorAll('.account-group'); | |
for(i = 0; i < accountGroups.length; i++) { | |
// Full name | |
accountGroups[i].querySelector('.fullname').textContent = 'Rickrolled!'; | |
// Username | |
username = accountGroups[i].querySelector('.account-group-inner .username span.js-username'); | |
if(username) { | |
username.textContent = 'rckrlld'; | |
} | |
username = accountGroups[i].querySelector('.username b'); | |
if(username) { | |
username.textContent = 'rckrlld'; | |
} | |
} | |
containers = document.querySelectorAll('.QuoteTweet-originalAuthor'); | |
for(i = 0; i < containers.length; i++) { | |
containers[i].querySelector('.QuoteTweet-fullname').textContent = 'Rickrolled!'; | |
containers[i].querySelector('.QuoteTweet-screenname').childNodes[2].textContent = 'rckrlld'; | |
} | |
containers = document.querySelectorAll('.js-retweet-text .js-user-profile-link b'); | |
for(i = 0; i < containers.length; i++) { | |
containers[i].textContent = 'Rickrolled! Retweeted'; | |
} | |
containers = document.querySelectorAll('.js-retweet-text .js-user-profile-link b'); | |
for(i = 0; i < containers.length; i++) { | |
containers[i].textContent = 'Rickrolled! Retweeted'; | |
} | |
containers = document.querySelectorAll('.conversation-header .uncollapse'); | |
for(i = 0; i < containers.length; i++) { | |
containers[i].childNodes[2].textContent = 'In reply to Rickrolled!'; | |
} | |
// Profile Card | |
profileCard = document.querySelector('.DashboardProfileCard-userFields'); | |
profileCard.querySelector('.DashboardProfileCard-name a').textContent = 'Rickrolled!'; | |
profileCard.querySelector('.DashboardProfileCard-screenname a span').textContent = 'rckrlld'; | |
}, | |
// Utilities | |
blur: function (element) { | |
element.style.webkitFilter = 'blur(4px)'; | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment