Skip to content

Instantly share code, notes, and snippets.

@Kalli
Last active December 15, 2015 21:09
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 Kalli/5323701 to your computer and use it in GitHub Desktop.
Save Kalli/5323701 to your computer and use it in GitHub Desktop.
Mildly amusing Facebook javascript prank. Run this code in the javascript console off someone who has Facebook running in their browser all the time. Sit back and watch the headscratching and frustration commence.
function FBNotificationsPrank(){
document.getElementById('fbNotificationsJewel').className = document.getElementById('fbNotificationsJewel').className + " hasNew";
document.getElementById('notificationsCountValue').innerHTML = 1;
document.title = "(1) Facebook";
setTimeout(FBNotificationsPrank, 10000);
}
FBNotificationsPrank();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment