Skip to content

Instantly share code, notes, and snippets.

@RikerW
Created February 9, 2016 20:36
Show Gist options
  • Save RikerW/09bec23166a4ac03f87a to your computer and use it in GitHub Desktop.
Save RikerW/09bec23166a4ac03f87a to your computer and use it in GitHub Desktop.
Hello!
#Bitsbox code
These are all the commands/code I discovered.
##Rickroll:
window.open("http://bit.ly/IqT6zt","_parent")
**alt:**
window.open("http://bit.ly/defcon","_parent")
##Infinite text addition, runs out of memory:
txt = "break bitsbox pls ";
for(;;){
txt += txt;
console.log(txt);
}
##Just plain infinite loop
for(;;)console.log(1)
##Epic looking infinite loop
\_=\_=>1;
for(;_(_);)_(_);
##Recursivish crash function
function crash(){
window.location.hash=Math.random(),onhashchange=function(){crash()}
}
##Recursive and infinite loop
function f(i){try{f(i+1);}catch(e){console.log(i);}}
f(1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment