summaryrefslogtreecommitdiff
path: root/zdic.js
diff options
context:
space:
mode:
Diffstat (limited to 'zdic.js')
-rw-r--r--zdic.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/zdic.js b/zdic.js
index 920f411..5eaac32 100644
--- a/zdic.js
+++ b/zdic.js
@@ -5,3 +5,16 @@ for(i=0; i < tabpages.length; i++){
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\>.*/,"「去英」");
+}