Created
November 22, 2012 09:43
-
-
Save june29/4130263 to your computer and use it in GitHub Desktop.
日本は釧路になりました
This file contains hidden or 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== | |
// @id kushiro-no-yabou | |
// @name 釧路のやぼう | |
// @version 1.0 | |
// @namespace http://june29.jp/ | |
// @author june29 | |
// @description 日本は釧路になりました | |
// @include * | |
// @run-at document-end | |
// ==/UserScript== | |
(function() { | |
var body = document.body; | |
var targets = ["函館", "旭川", "苫小牧", "八戸", "一関", | |
"仙台", "秋田", "鶴岡", "福島", "茨城", | |
"小山", "群馬", "木更津", "東京", "サレジオ", | |
"長岡", "石川", "金沢", "福井", "長野", | |
"岐阜", "沼津", "豊田", "鳥羽", "鈴鹿", "近畿", | |
"舞鶴", "大阪", "明石", "神戸", "奈良", "和歌山", | |
"米子", "松江", "津山", "広島", "呉", "徳山", | |
"宇部", "大島", "阿南", "香川", "新居浜", "弓削", | |
"高知", "北九州", "久留米", "有明", "佐世保", | |
"熊本", "大分", "都城", "鹿児島", "沖縄"]; | |
for (var i = 0; i < targets.length; i++) { | |
var target = targets[i]; | |
body.innerHTML = body.innerHTML.replace(new RegExp(target, "g"), "釧路"); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment