TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Egg.js – A Simple Way to Add Easter Eggs to Your Site

54 pointsby mikeflynnabout 10 years ago

7 comments

notjustanymikeabout 10 years ago
Seems to me you could just use mousetrap.js and get the added bonus of a solid key capture library.<p><a href="https:&#x2F;&#x2F;craig.is&#x2F;killing&#x2F;mice" rel="nofollow">https:&#x2F;&#x2F;craig.is&#x2F;killing&#x2F;mice</a>
评论 #9422040 未加载
jbrooksukabout 10 years ago
I did the same thing (but with jQuery) around 5 years ago; <a href="https:&#x2F;&#x2F;github.com&#x2F;jbrooksuk&#x2F;jQuery-Contra" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jbrooksuk&#x2F;jQuery-Contra</a><p>I&#x27;m pretty sure that it&#x27;s in need of an update...
aethrabout 10 years ago
Does anyone here have experience using easter eggs as a social traffic-driving tool?<p>We have a client with a great product (well respected in their field) and one of our developers spent a weekend voluntarily building a very cool easter egg for their site. I think posting the easter egg somewhere relevant to their user base (like a topical subreddit) might be an interesting &quot;campaign&quot; to drive new users to the site.<p>Has anyone done this before?
评论 #9418109 未加载
评论 #9417771 未加载
评论 #9419947 未加载
mattmalinabout 10 years ago
There&#x27;s another lightweight version to do this here: <a href="https:&#x2F;&#x2F;github.com&#x2F;mckamey&#x2F;konami-js" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mckamey&#x2F;konami-js</a><p>This includes a minified version resulting in a &lt;1 kb addition to code: <a href="https:&#x2F;&#x2F;github.com&#x2F;FlorianBezagu&#x2F;Konamiz&#x2F;blob&#x2F;master&#x2F;konamiz.min.js" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;FlorianBezagu&#x2F;Konamiz&#x2F;blob&#x2F;master&#x2F;konamiz...</a><p>Also worth considering is konami-js (<a href="https:&#x2F;&#x2F;github.com&#x2F;snaptortoise&#x2F;konami-js&#x2F;blob&#x2F;master&#x2F;konami.js" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;snaptortoise&#x2F;konami-js&#x2F;blob&#x2F;master&#x2F;konami...</a>), which treats cases different such as if running from iphone if not wishing to change to the standard code.
Someone1234about 10 years ago
Quite similar to cheet.js (sic):<p><a href="https:&#x2F;&#x2F;namuol.github.io&#x2F;cheet.js&#x2F;" rel="nofollow">https:&#x2F;&#x2F;namuol.github.io&#x2F;cheet.js&#x2F;</a><p>There&#x27;s is a little more feature rich, but 2x as many characters minified (appro. 3K for cheet.js Vs 1.5K for Egg.js) which does matter for an Easter Egg in my opinion (as it should be as close to &quot;free&quot; as possible).
评论 #9417380 未加载
llamatabootabout 10 years ago
First thing I did was check for an easter egg on this site :)
peshkiraabout 10 years ago
heads up, in Safari, there is the following error: TypeError: undefined is not a function (evaluating &#x27;Number.isInteger(parseInt(a, 10))&#x27;)
评论 #9415925 未加载