Skip to content

Commit 857ee57

Browse files
committed
added textSize.js
1 parent b02ad83 commit 857ee57

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Scripts that could be injected in MITM attacks using dSploit for Android.
1111
* rotate.js - Rotates images in webpage
1212
* reverse.js - Reverses images
1313
* blinkRed.js - Text is blinking red and black
14+
* textSize.js - Increasing and decreasing text size
1415

1516
## License
1617
The full license text is included in `LICENSE.txt`.

scripts.zip

285 Bytes
Binary file not shown.

scripts/textSize.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Increasing and decreasing text size
2+
3+
<script type="text/javascript">
4+
window.onload = function() {
5+
var size = 1.0
6+
var up = true;
7+
8+
setInterval(function() {
9+
document.body.style.fontSize = size + "em";
10+
if (up)
11+
size += 1;
12+
else
13+
size -= 1;
14+
if (size == 10)
15+
up = false;
16+
if (size == 0)
17+
up = true;
18+
}, 100);
19+
}
20+
</script>

0 commit comments

Comments
 (0)