Skip to content

Commit f3d1626

Browse files
authored
Update Changer.js
1 parent fcecf2c commit f3d1626

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

Changer.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
const element = document.querySelector('.p3WVzB_599d5ef2ae28184 span');
2-
if (element) {
3-
// Sayısal kısmı izole et ve sadece onu değiştir
4-
const textNode = element.lastChild; // Son çocuk öğesi, burada "0"
5-
if (textNode && textNode.nodeType === 3) { // Text node olup olmadığını kontrol et
6-
textNode.textContent = "1,987"; // Sayıyı 1987 ile değiştir
1+
document.addEventListener('DOMContentLoaded', () => {
2+
const element = document.querySelector('.p3WVzB_599d5ef2ae28184 span');
3+
if (element) {
4+
const textNode = element.lastChild;
5+
if (textNode && textNode.nodeType === 3) {
6+
textNode.textContent = "1,987";
7+
}
78
}
8-
}
9+
});

0 commit comments

Comments
 (0)