summaryrefslogtreecommitdiff
path: root/zdic.js
blob: 5eaac328cc083d006e7b8b3b31203c59f7f9dc89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
tabpages = document.getElementsByClassName("tab-page");
for(i=0; i < tabpages.length; i++){
	e = tabpages[i];
	e.innerHTML = e.innerHTML.replace(/English.*[a-z].*/gi,"「去英」");
	e.innerHTML = e.innerHTML.replace(/\[.*[a-z].*\]/gi,"「去英」");
	e.innerHTML = e.innerHTML.replace(/\<span.*\>[a-z].*?[a-z]\<\/span\>/gi,"「去英」");
}

foreignSpans = document.getElementsByClassName("encs");
for (i = 0; i < foreignSpans.length; i++) {
	s = foreignSpans[i];
	s.innerHTML = s.innerHTML.replace(/.*/,"「去英」");
}
paragraphs = document.getElementsByTagName("p");
for(i=0; i < paragraphs.length; i++){
	p = paragraphs[i];
	p.innerHTML = p.innerHTML.replace(/\<span.*z_ts2.*\>德语\<\/span\>.*/,"「去英」");
	p.innerHTML = p.innerHTML.replace(/\<span.*z_ts2.*\>英语\<\/span\>.*/,"「去英」");
	p.innerHTML = p.innerHTML.replace(/\<span.*z_ts2.*\>法语\<\/span\>.*/,"「去英」");
}