| Culture |
I am not much of an April Fool’s Day fan. Not everyone can achieve the giddy heights of, say, the BBC’s oldie but goodie prank on its viewers 60 years ago, and attempts to do so can be sadly ineffective. Nonetheless, April 1st is almost upon us, and as we welcome Spring back into our lives, we must also endure the one day that our workplace prankster (we’ll call him Tad) comes into his or her own.
It doesn’t have to be this way. You can strike at Tad first, as long as you have a few ideas up your sleeve. Here are some classic and alternative ways to make sure that Tad—and his silly unmatching socks and zany ties—don’t mess with you in the future.
WARNING: The following pranks can result in being:
Ok, let’s get this out of the way so we can carry on enjoying our lives!
NOTE: A couple of these pranks are aimed at MacOS users, although they’re likely achievable on other platforms. They also require access to Tad’s work machine. To gain the element of surprise, consider a diversion tactic of your choice, or implement one or more of these pranks early (or even better, in August).
A good prank needn’t take the week to plan, and for the half-hearted pranksters out there, most of the heavy lifting has been done for you through the gift of Chrome extensions. It turns out there are a lot of good ones out there, but here are a few to get your creative juices flowing:
MacOS only
This one is short and sweet. Go to System Preferences > Keyboard and click the Text tab. Click the + symbol. From there you can replace ‘the’ with ‘teh’, for example.
NOTE: This replacement doesn’t work on every application, so you may have to be patient to see the fruits of your labors.
MacOS only
Let’s get a bit more serious. In this prank, we’re going to create an AppleScript application that launches applications in a way that Tad isn’t expecting. When he launches Word, he expects Word to launch just once! Classic Tad. Let’s say you want to launch 20 instances of Word instead. Here goes:
on run
set wordPath to "/Applications/Microsoft Office 2011/Microsoft Word.app"
do shell script "open -n " & quoted form of wordPath
tell application "Microsoft Word" to activate
end run
on run
set wordPath to "/Applications/Microsoft Office 2011/Microsoft Word.app"
do shell script "open -n " & quoted form of wordPath
tell application "Microsoft Word" to activate
do shell script "open -n " & quoted form of wordPath
tell application "Microsoft Word" to activate
do shell script "open -n " & quoted form of wordPath
tell application "Microsoft Word" to activate
do shell script "open -n " & quoted form of wordPath
tell application "Microsoft Word" to activate
do shell script "open -n " & quoted form of wordPath
tell application "Microsoft Word" to activate
do shell script "open -n " & quoted form of wordPath
tell application "Microsoft Word" to activate
do shell script "open -n " & quoted form of wordPath
tell application "Microsoft Word" to activate
do shell script "open -n " & quoted form of wordPath
tell application "Microsoft Word" to activate
do shell script "open -n " & quoted form of wordPath
tell application "Microsoft Word" to activate
do shell script "open -n " & quoted form of wordPath
tell application "Microsoft Word" to activate
do shell script "open -n " & quoted form of wordPath
tell application "Microsoft Word" to activate
do shell script "open -n " & quoted form of wordPath
tell application "Microsoft Word" to activate
do shell script "open -n " & quoted form of wordPath
tell application "Microsoft Word" to activate
do shell script "open -n " & quoted form of wordPath
tell application "Microsoft Word" to activate
do shell script "open -n " & quoted form of wordPath
tell application "Microsoft Word" to activate
do shell script "open -n " & quoted form of wordPath
tell application "Microsoft Word" to activate
do shell script "open -n " & quoted form of wordPath
tell application "Microsoft Word" to activate
do shell script "open -n " & quoted form of wordPath
tell application "Microsoft Word" to activate
do shell script "open -n " & quoted form of wordPath
tell application "Microsoft Word" to activate
do shell script "open -n " & quoted form of wordPath
tell application "Microsoft Word" to activate
end run
This one’s a tad (ha!) obscure, but might be fun. WARNING: It could also be a fireable offense if your prank somehow makes it to production. You have been warned!
Let’s say Tad is working on a bunch of projects (typical Tad), and he uses Grunt to automate his tasks and build his websites. Open up one of his projects in the terminal and type:
npm install grunt-string-replace
Now open up Tad’s Gruntfile and add the task:
grunt.loadNpmTasks('grunt-string-replace');
In his build tasks, add 'string-replace' to the array of tasks.
Next, define that task! In the following example we’re focusing on the build folder, and it’s last in our list of tasks (this ensures that our hard work isn’t overwritten by subsequent tasks). We’re searching for all html files and replacing ‘the’ with ‘teh’ using a regular expression (defining a string as a pattern will only change the first instance).
'string-replace': { dist: { files: [{ expand: true, cwd: 'build/', src: '**/*.html', dest: 'build/' }], options: { replacements: [{ pattern: /the /g, replacement: 'teh ' }] } } }
That’s it. Sit back and wait for Tad to run a build task. Of course, you could get more inventive with the replacements and perhaps only target one or two files. However, most importantly, remember that I never, ever, recommended you do this to anyone. Ever. Don’t do it.