<html>
<head>
<title><THREADNAME/></title>
<style type="text/css">
a:hover {
color: #ff0000;
text-decoration: underline;
}
</style>
<script type="text/JavaScript">
// リンクにマウスオーバーされたらリンク先をチェックし
// ようつべかニコ動ならサムネイルを挿入してみる
document.onmouseover =
function()
{
var e = window.event.srcElement;
if ( e.tagName == 'A' )
{
// マウスオーバーされた要素がAリンクだったので
if ( e.href.match( /^http:\/\/www\.youtube\.com\/watch\?v=(\w+)/ ) )
{
// hrefがYouTubeなので
if ( !e.img )
{
// 挿入済みじゃないのでA要素内にサムネイルimg要素を挿入
var img = "<img src='" + "http://i...content-available-to-author-only...g.com/vi/" + RegExp.$1 + "/default.jpg' />";
e.insertAdjacentHTML( 'AfterBegin' , img );
e.img = true; // 挿入済みにする
}
}
else if ( e.href.match( /^http:\/\/www\.nicovideo\.jp\/watch\/sm(\d+)/ ) )
{
// hrefがニコ動なので
if ( !e.img )
{
// 挿入済みじゃないのでA要素内にサムネイルimg要素を挿入
var img = "<img src='" + "http://t...content-available-to-author-only...o.jp/smile?i=" + RegExp.$1 + "' />";
e.insertAdjacentHTML( 'AfterBegin' , img );
e.img = true; // 挿入済みにする
}
}
}
}
</script>
</head>
<body>
<font face="MS Pゴシック">
<dl>
PGh0bWw+CjxoZWFkPgo8dGl0bGU+PFRIUkVBRE5BTUUvPjwvdGl0bGU+CjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+CmE6aG92ZXIgewogICAgY29sb3I6ICNmZjAwMDA7Cgl0ZXh0LWRlY29yYXRpb246IHVuZGVybGluZTsKfQo8L3N0eWxlPgo8c2NyaXB0IHR5cGU9InRleHQvSmF2YVNjcmlwdCI+Ci8vIOODquODs+OCr+OBq+ODnuOCpuOCueOCquODvOODkOODvOOBleOCjOOBn+OCieODquODs+OCr+WFiOOCkuODgeOCp+ODg+OCr+OBlwovLyDjgojjgYbjgaTjgbnjgYvjg4vjgrPli5XjgarjgonjgrXjg6Djg43jgqTjg6vjgpLmjL/lhaXjgZfjgabjgb/j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