Skip to content

Instantly share code, notes, and snippets.

Avatar

Tobias Wasner wasnertobias

  • Europe/Germany/Bavaria
View GitHub Profile
View untrusted-lvl2-solution.js
/********************
* theLongWayOut.js *
********************
*
* Well, it looks like they're on to us. The path isn't as
* clear as I thought it'd be. But no matter - four clever
* characters should be enough to erase all their tricks.
*/
function startLevel(map) {
View untrusted-lvl1-solution.js
/*****************
* cellBlockA.js *
*****************
*
* Good morning, Dr. Eval.
*
* It wasn't easy, but I've managed to get your computer down
* to you. This system might be unfamiliar, but the underlying
* code is still JavaScript. Just like we predicted.
*
View SmoothScroll-min.js
// SmoothScroll for websites v1.2.1
// Licensed under the terms of the MIT license.
// People involved
// - Balazs Galambosi (maintainer)
// - Michael Herf (Pulse Algorithm)
// - Tobias Wasner (optimized & minimized)
(function(){function c(){if(s)return;s=true;if(!document.body)return;var e=document.body;var r=document.documentElement;var a=window.innerHeight;var f=e.scrollHeight;o=document.compatMode.indexOf("CSS")>=0?r:e;u=e;var c=false;if(c){T("keydown",g)}if(l.keyboardSupport&&!c){x("keydown",g)}i=true;if(top!=self){n=true}else if(f>a&&(e.offsetHeight<=a||r.offsetHeight<=a)){var h=false;var p=function(){if(!h&&r.scrollHeight!=document.height){h=true;setTimeout(function(){r.style.height=document.height+"px";h=false},500)}};r.style.height="auto";setTimeout(p,10);if(o.offsetHeight<=a){var d=document.createElement("div");d.style.clear="both";e.appendChild(d)}}if(!l.fixedBackground&&!t){e.style.backgroundAttachment="scroll";r.style.backgroundAttachment="scroll"}}function v(e,t,n,r){r||(r=1e3);C(t,n);i