We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 90ab5ef + 506f3fe commit 74ffa53Copy full SHA for 74ffa53
README.md
@@ -0,0 +1,4 @@
1
+# Douglos
2
+
3
+All images have a 10% chance of being replace by **DOGLOS MAKONHA \_\\|/_**
4
+<img src="https://i.imgur.com/XSrHlah.jpg">
douglos.js
@@ -1,7 +1,8 @@
-var imgs = document.getElementsByTagName('img');
+window.onload = () => {
+ const imgs = [...document.getElementsByTagName('img')]
-for(var i = 0; i < imgs.length; i++) {
- if (Math.random() >= 0.9) {
5
- imgs[i].src="https://i.imgur.com/XSrHlah.jpg"
6
- }
+ imgs.forEach(img => {
+ if (Math.random() >= 0.9)
+ img.src = "https://i.imgur.com/XSrHlah.jpg"
7
+ })
8
}
0 commit comments