Skip to content

rhspeer/joy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Joy

Wordpress CSS April Fools Day pranks.

This combination of included function & css allows code savy pranksters to make a site behave oddly for specific logged in users without disrupting the user experience for unauthenticated or untargeted users.

For example lets say we have a friend named Joe that we know would enjoy a little surprise and logs into one of our sites regularly. We can add Joe's username to the $arrUsersToPrank array and he'll see a site that spins it's logo, changes color, and is slightly askew. However, nobody else will so we can all pretend like Joe is crazy until someone breaks out laughing. Everyone has a good giggle, and tells their friends about what a fun place they work at.

Pranks Included:

  1. All fonts to Comic Sans
  2. Make site black & white
  3. Rotate site just a little (weirder than I expected)
  4. Spin an element back and forth, like the logo
  5. Make hot links hot pink, which makes sense when you think about it
  6. Make elements grow bigly
  7. Trippy changin colors
  8. Hide every other paragraph
  9. Blur the Page

These can be mixed and matched for everyone, and different users can be set to see different pranks.

IMPORTANT!

By using this prank code you are agreeing to the following terms:

  1. Always punch up, only prank respected collegues and those above you in the org chart, no pranking subordinates.
  2. Never prank anyone you don't like
  3. These pranks should not cost anyone money, or damage reputations by exposing the prank to current or potential clients
  4. If you get pranked, laugh louder than anyone else, or at least get over it quickly ;)
  5. Pranks are only funny once, multiple pranks becomes harassement and that's not cool
  6. If someone is a massive jerk about being pranked, send them this complete function so they can see where I called them a over reacting jerk.
  7. Know the rules, if in doubt ask the most important person in your office if this is ok, and offer to take requests, if the boss thinks it's funny it's all good.

Author

Robert Speer email: rhspeer@gmail.com Please send me your funny stories

Credits:

Installation:

  1. Copy and paste code in add_to_themes_functions.php into your active wp theme's functions.php. It would be better to make a child theme, and if you have that inclination feel free.
  2. Edit the add_joy() function to include the usernames of your favorite coworkers. For your convienence my usernames are included by default ;)
  3. Test with your own username first, that will help you fine tune the combination of pranks css you'd like to use
  4. Double check the css path for the joy.css stylesheet
  5. copy joy.css into your theme's css directory
  6. uncomment and comment pranks to get just the right mix for your team

Bonus, you can tailor the experience per user so different people are reporting different issues by taking advantage of the username specific class added to the body tag.

Have fun, and a joyful April Fools Day!

About

Wordpress April Fools day pranks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published