-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
48 lines (39 loc) · 933 Bytes
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
walk(document.body);
function walk(node)
{
// I stole this function from here:
// http://is.gd/mwZp7E
var child, next;
switch ( node.nodeType )
{
case 1:
case 9:
case 11:
child = node.firstChild;
while ( child )
{
next = child.nextSibling;
walk(child);
child = next;
}
break;
case 3:
handleText(node);
break;
}
}
function handleText(textNode)
{
var v = textNode.nodeValue;
v = v.replace(/Путіним/g, "Хуйлом");
v = v.replace(/Путіну/g, "Хуйлу");
v = v.replace(/Путіна/g, "Хуйла");
v = v.replace(/Путін/g, "Хуйло");
v = v.replace(/Путине/g, "Хуйле");
v = v.replace(/Путиным/g, "Хуйлом");
v = v.replace(/Путину/g, "Хуйлу");
v = v.replace(/Путина/g, "Хуйла");
v = v.replace(/Путин/g, "Хуйло");
v = v.replace(/Putin/g, "Khuilo");
textNode.nodeValue = v;
}