/*
* @title Comma-separated serif
* @description ムスカ全セリフ集でテキストをカンマ区切りで吸い出す
* @include http://homepage3.nifty.com/keiba-com/msk.htm
* @license MIT License
*/
// let's go to http://homepage3.nifty.com/keiba-com/msk.htm
(function () {
var target = 'http://homepage3.nifty.com/keiba-com/msk.htm';
var l = document.location.href;
if (l === target) {
var t = document.querySelector('pre font[size="4"] b') .firstChild.data;
t = t.replace(/^[\r\n]/, '');
t = t.replace(/(.*)[\r\n]$/, '$1');
t = t.replace(/[\r\n]+/g, ', ');
/* If you'd like to use the text for the projects for example...
t = t.split(',');
var r = '';
for (var i=0; i<t.length; i++){
r += i+1 +' : ' + '「' + t[i] + '」\n' ;
}
alert(r);
*/
alert(t);
} else {
alert('\u3042\u3063\u306F\u3063\u306F\u3063\u306F\u3001\u3069\u3053\u3078\u884C\u3053\u3046\u3068\u3044\u3046\u306E\u304B\u306D\uFF01\uFF1F');
}
}) ();