Skip to content

Instantly share code, notes, and snippets.

@oquno
Created September 28, 2013 16:57
Show Gist options
  • Save oquno/6744082 to your computer and use it in GitHub Desktop.
Save oquno/6744082 to your computer and use it in GitHub Desktop.
Shift_JIS に文字コード変え太郎
// ==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