回答編集履歴
1
追記
test
CHANGED
@@ -9,3 +9,33 @@
|
|
9
9
|
> The scripting flag must be set to "disabled".
|
10
10
|
|
11
11
|
[DOM Parsing and Serialization](http://www.w3.org/TR/DOM-Parsing/#widl-DOMParser-parseFromString-Document-DOMString-str-SupportedType-type)
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
#####追記
|
20
|
+
|
21
|
+
回避策を書くの忘れてました。
|
22
|
+
|
23
|
+
```javascript
|
24
|
+
|
25
|
+
function replace()
|
26
|
+
|
27
|
+
{
|
28
|
+
|
29
|
+
var data = document.scripts[0].innerHTML;
|
30
|
+
|
31
|
+
var script = document.createElement('script');
|
32
|
+
|
33
|
+
script.appendChild(document.createTextNode(data.replace(/sho[w]1/g,"show2").replace(/OK\sDESU/g,"OK KANA")));
|
34
|
+
|
35
|
+
document.body.appendChild(script);
|
36
|
+
|
37
|
+
}
|
38
|
+
|
39
|
+
```
|
40
|
+
|
41
|
+
こんなのはどうですか?
|