
/*
var dirPath = "http://sv60.wadax.ne.jp";
var dirPath2 = "/~risabraire-com";
var dirPath3 = "http://www.risabraire.com/";
var dirPath4 = "https://sv60.wadax.ne.jp/~risabraire-com/";
var att = "";


var arr_link = document.getElementsByTagName('link');
for (var i=0; i < arr_link.length; i++) {
	att = arr_link[i].getAttribute('href');
	rex = new RegExp(dirPath+dirPath2, 'i');
	if (!att.match(rex)) {
		rex = new RegExp(dirPath, 'i');
		if (!att.match(rex)) {
			arr_link[i].setAttribute('href', dirPath+dirPath2+att);
		} else {
			rex = new RegExp(dirPath2, 'i');
			if (!att.match(rex)) {
				att = att.replace(dirPath,dirPath+dirPath2);
				arr_link[i].setAttribute('href', dirPath+dirPath2+att);
				arr_link[i].setAttribute('href', att);
			}
		}
	}
}

var arr_a = document.getElementsByTagName('a');
for (var i=0; i < arr_a.length; i++) {
	att = arr_a[i].getAttribute('href');
	rex = new RegExp('javascript', 'i');
	if (!att.match(rex)) {
		rex = new RegExp(dirPath4, 'i');
		if (!att.match(rex)) {
			if (att != dirPath3) {
				rex = new RegExp(dirPath+dirPath2, 'i');
				if (!att.match(rex)) {
					att = arr_a[i].getAttribute('href');
					rex = new RegExp(dirPath, 'i');
					if (!att.match(rex)) {
						arr_a[i].setAttribute('href', dirPath+dirPath2+att);
					} else {
						rex = new RegExp(dirPath2, 'i');
						if (!att.match(rex)) {
							att = att.replace(dirPath,dirPath+dirPath2);
							arr_a[i].setAttribute('href', att);
						}
					}
				}
			}
		}
	}
}

var arr_s = document.getElementsByTagName('img');
for (var i=0; i < arr_s.length; i++) {
	att = arr_s[i].getAttribute('src');
	rex = new RegExp(dirPath+dirPath2, 'i');
	if (!att.match(rex)) {
		rex = new RegExp(dirPath, 'i');
		if (!att.match(rex)) {
			arr_s[i].setAttribute('src', dirPath+dirPath2+att);
		} else {
			rex = new RegExp(dirPath2, 'i');
			if (!att.match(rex)) {
				att = att.replace(dirPath,dirPath+dirPath2);
				arr_s[i].setAttribute('src', dirPath+dirPath2+att);
				arr_s[i].setAttribute('src', att);
			}
		}
	}
	att = arr_s[i].getAttribute('src');
	rex = new RegExp('\%7Erisabraire-com/', 'i');
	if (att.match(rex)) {
		att = att.replace("\%7Erisabraire-com/","");
		arr_s[i].setAttribute('src', att);
	}
}
*/
