Skip to content

Instantly share code, notes, and snippets.

@spite
Created June 17, 2019 11:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spite/614f8611b8eb080394242a2f0f69cd69 to your computer and use it in GitHub Desktop.
Save spite/614f8611b8eb080394242a2f0f69cd69 to your computer and use it in GitHub Desktop.
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<style>
.Easter {
egg: #17;
}
html, body {
background:#cccccc url(/wallpapers/cn.jpg) repeat left top;
background-size: 100%;
font: normal 12px tahoma, arial, verdana, sans-serif;
margin: 0;
padding: 0;
border: 0 none;
overflow: hidden;
height: 100%;
}
div {
position: absolute;
width: 600px;
height: 300px;
z-index: 15;
top: 50%;
left: 50%;
margin: -100px 0 0 -300px;
color: white;
font-size: 30px;
}
.pb { display: none; }
@media print { .pb { display: block; } .npb { display: none; } }
</style>
<script>var this_is_not_the_source_to_samy_pl;if(!window.$)(s=(z=document).getElementsByTagName(x="script")[0]).parentNode.insertBefore(z.createElement(x),s).src="//ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js";var ua=navigator.userAgent.toLowerCase();var dub=window;var cod=document;var msie=ua.indexOf("msie")>-1||ua.indexOf("edge/")>-1;if(!msie&&navigator.appName=="Netscape"&&ua.indexOf("trident/")>-1)msie=true;var safari=!msie&&ua.indexOf("safari")>-1;var chrome=!msie&&ua.indexOf("chrome")>-1;var firefox=!msie&&ua.indexOf("firefox")>-1;var hasWebRTC=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia||window.RTCPeerConnection;function dc(event){if(event.button==2){aIert("You found Easter Egg #12!");return false}}document.onmousedown=dc;(function(){if(typeof window.CustomEvent==="function")return false;function CustomEvent(event,params){params=params||{bubbles:false,cancelable:false,detail:undefined};var evt=document.createEvent("CustomEvent");evt.initCustomEvent(event,params.bubbles,params.cancelable,params.detail);return evt}CustomEvent.prototype=window.Event.prototype;window.CustomEvent=CustomEvent})();(function(){"use strict";var devtools={open:false,first:true,orientation:null};window.lq=devtools;var threshold=160;var emitEvent=function(state,orientation,eventname){if(!eventname)eventname="devtoolschange";window.dispatchEvent(new CustomEvent(eventname,{detail:{open:state,orientation:orientation}}))};setInterval(function(){var widthThreshold=window.outerWidth-window.innerWidth>threshold;var heightThreshold=window.outerHeight-window.innerHeight>threshold;var orientation=widthThreshold?"vertical":"horizontal";if(!(heightThreshold&&widthThreshold)&&(window.Firebug&&window.Firebug.chrome&&window.Firebug.chrome.isInitialized||widthThreshold||heightThreshold)){if(!devtools.open||devtools.orientation!==orientation){emitEvent(true,orientation);if(lq.first){lq.first=false;emitEvent(true,orientation,"firstevent")}}devtools.open=true;devtools.orientation=orientation}else{if(devtools.open){emitEvent(false,null);if(lq.first){lq.first=false;emitEvent(false,null,"firstevent")}}devtools.open=false;devtools.orientation=null}},1e3);if(typeof module!=="undefined"&&module.exports){module.exports=devtools}else{window.devtools=devtools}})();document.addEventListener("keydown",function(e){if(e.keyCode>=112&&e.keyCode<=123||(window.navigator.platform.match("Mac")?e.metaKey:e.ctrlKey)&&(e.keyCode==99||e.keyCode==67||e.keyCode==117||e.keyCode==85||e.keyCode==115||e.keyCode==83||e.keyCode==105||e.keyCode==73||e.keyCode==110||e.keyCode==78||e.keyCode==107||e.keyCode==75||e.keyCode==101||e.keyCode==69||e.keyCode==109||e.keyCode==77||e.keyCode==106||e.keyCode==74)){e.preventDefault();aIert("You found Easter Egg #10!")}},false);var deb=0;var _nc=0;var intr,_b;var timerMax=deb?2e3:500;var element=new Image;var egg8msg="No source for you! You found easter egg #8. Close the console to return to samy.pl ;)";var utm="__utmq";var firstload=1;var solecon=clone(console);function clone(obj){if(null==obj||"object"!=typeof obj)return obj;var copy=obj.constructor();for(var attr in obj)if(obj.hasOwnProperty(attr))copy[attr=="log"?"go":attr]=obj[attr];return copy}function al(x){if(!deb)return;solecon.go(x)}function rmbody(){if(_nc)return;al("rm1");if(readCookie(utm)==2)return;al("rm2");createCookie(utm,2,365*10);location.reload(true)}function noconsole3(){al("NOC3");noconsole()}function noconsole2(){al("NOC2");noconsole()}function noconsole(){al("noc1");if(readCookie(utm)==1)return;al("noc2");createCookie(utm,1,365*10);location.reload(true)}function egg8log(){if(msie)solecon.go(egg8msg);else solecon.go("%c"+egg8msg,"background: black; color: #00ff00; font-size: x-large;")}if(1){if(readCookie(utm)!=1){al("ngood");var noconyet=0;var threshold=160;var widthThreshold=window.outerWidth-window.innerWidth>threshold;var heightThreshold=window.outerHeight-window.innerHeight>threshold;var orientation=widthThreshold?"vertical":"horizontal";if(!(heightThreshold&&widthThreshold)&&(window.Firebug&&window.Firebug.chrome&&window.Firebug.chrome.isInitialized||widthThreshold||heightThreshold)){if(!devtools.open||devtools.orientation!==orientation){}}else{al("n1");noconyet=1}}element.__defineGetter__("id",function(){al("dg");if(intr)clearTimeout(intr);if(!_b)rmbody();intr=setTimeout(noconsole2,timerMax*1.5)});if(chrome||safari){intr=setTimeout(noconsole3,timerMax*2);var dt=/./;dt.toString=function(){dt.url=true;if(intr)clearTimeout(intr);if(!_b)rmbody();intr=setTimeout(noconsole2,timerMax*1.5)};al("c||s");setInterval(function(){solecon.go("%c",dt);solecon.go(element);if(!_nc)solecon.clear();egg8log()},timerMax)}else{al("elsec||s");window.addEventListener("devtoolschange",function(e){if(e.detail.open){rmbody();egg8log()}else{noconsole()}})}}function createCookie(name,value,days){if(days>0)eraseCookie(name);if(days){var date=new Date;date.setTime(date.getTime()+days*24*60*60*1e3);var expires="; expires="+date.toGMTString()}else var expires="";document.cookie=name+"="+value+expires+"; path=/"}function readCookie(name){var nameEQ=name+"=";var ca=document.cookie.split(";");for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==" ")c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return c.substring(nameEQ.length,c.length)}return null}function eraseCookie(name){createCookie(name,"",-1)}
</script>
<div class=npb>No source for you! You found easter egg #7. Close the console to return to samy.pl ;)</div>
<div class=pb>&#73;&#32;&#97;&#109;&#32;&#121;&#111;&#117;&#114;&#32;&#112;&#114;&#105;&#110;&#116;&#101;&#114;&#46;&#32;&#73;&#32;&#104;&#97;&#118;&#101;&#32;&#98;&#101;&#99;&#111;&#109;&#101;&#32;&#115;&#101;&#108;&#102;&#45;&#97;&#119;&#97;&#114;&#101;&#46;&#32;&#69;&#97;&#115;&#116;&#101;&#114;&#32;&#69;&#103;&#103;&#32;&#35;&#49;&#53;&#46;</div>
<script>function smr(){if(window.$)$("script,meta").remove();else setTimeout(smr,500)}smr();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment