08/10/29 00:58:41 92Ep+Saa0
出直してきました。これでどうでしょう? キャッシュ後は拡張マイリストも正しく機能します。
<span>を外せばキャッシュ中も大丈夫ですが、キャッシュ完了の判別に使えなくなるので…。
[Replace]
Name = watchRename(title-override)
URL = www.nicovideo.jp/watch/
Multi = FALSE
Match<
<h1><a href=".+?" target="_blank" (class="video".*?)>(.+?)</a></h1>
>
Replace<
<h1><a $1 id="watchRename"><span style="color:gray">$2</span></a></h1>
>
あと、タイトルにシングルクォート(')等を含むとおかしくなるのでwatchRename.jsを修正してみた。
幅は35emあれば殆どのタイトルは収まるんじゃないかと…。
function WR_viewTitleBox(ele,type){
if(WR_TITLE_EDIT==type){
var title = ele.innerHTML.replace(/<[^>]*>/g,'');
var input = document.createElement('input');
input.type = 'text';
input.value = title;
input.title = '空欄でデフォルト';
input.style.width = '35em';
input.onblur = function(){ WR_chTitle(this, title) };
ele.replaceChild(input, ele.firstChild);
ele.onclick = ele.ondblclick = function(){};
ele.firstChild.focus();
ele.firstChild.select();
}
}