Skip to content

Instantly share code, notes, and snippets.

@DavidWells
Created April 2, 2015 00:03
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DavidWells/10708a5be3e5b5e29f13 to your computer and use it in GitHub Desktop.
Save DavidWells/10708a5be3e5b5e29f13 to your computer and use it in GitHub Desktop.
Check if it is April fools day
/* Check if it is april fools day */
var aprilFools = {
month: 3,
date: 1
}
function isItAprilFoolDay() {
var now = new Date();
return (now.getMonth() == aprilFools.month && now.getDate() == aprilFools.date);
}
if(isItAprilFoolDay()){
// fuck with people
} else {
// there is less fake stuff today
}
@Petah
Copy link

Petah commented Apr 7, 2022

@RixInGithub Every 5 seconds, picks a random button, a, or label etc, and makes it fade out.

@RixInGithub
Copy link

RixInGithub commented Apr 12, 2022

@RixInGithub Every 5 seconds, picks a random button, a, or label etc, and makes it fade out.

So like the Thanos easter egg in Google? Also you could just do * instead of writing all elements. Just a single character.

@EntityPlantt
Copy link

This is a very specific gist, but actually useful, cuz I'm releasing an update today for something that should be tomorrow (April Fools'). Happy to see this as first in Google Search!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment