XMLHttpRequestでshift_jisなどからshift_jisのstaticなテキストを読もうとしたときに文字化けすることがある。 var n = new XMLHttpRequest(); n.open("/sjis.txt"); :Content-Typeのcharsetがちゃんとしてなかったりする場合だ。で、MozillaのXMLHttpRequestにはoverrideMimeTypeというものがあって var n = new XMLHttpRequest(); n.overrideMimeType("text/plain; charset=shift_jis"); n.open("/sjis.txt"); :などとすると文字化けせずに取り出せるようだ。IEにはそのメソッドはないようだ。 GreaseMonkeyに適用する 0.5.3だと「Mozillaのプロファイルの