Created
September 28, 2013 16:57
-
-
Save oquno/6744082 to your computer and use it in GitHub Desktop.
Shift_JIS に文字コード変え太郎
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Shift_JIS に文字コード変え太郎 | |
// @namespace http://oq.la | |
// @include https://hogehoge.com/hogehoge/* | |
// ==/UserScript== | |
var tags = ['head', 'HEAD']; | |
for (var i = 0; i < tags.length; i++) | |
{ | |
if (document.getElementByTagName(tags[i]).length > 0) | |
{ | |
document.getElementsByTagName(tags[i])[0] | |
.appendChild('<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">'); | |
break; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment