Firefoxで
<a name="hogehoge"></a>を<a name="hogehoge" href="hogehoge"></a>
に書き換えるような方法(Greasemonky or アドイン)を探しています。
Greasemonkeyスクリプトのご提供、もしくは情報の提供をお願いいたします。
// ==UserScript== // @name anchors add href // @namespace http://q.hatena.ne.jp/1213877019 // @description add href attribute to anchor elements // @include http://www.example.com/ // ==/UserScript== /** * name属性付きで作成されたアンカーにhref属性を加える * Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; ja-JP-mac; rv:1.9) Gecko/2008061004 Firefox/3.0 * Greasemonkey 0.8.20080609.0 */ for (var i = 0, j = document.anchors.length; i < j; i++) { var anchor = document.anchors[i]; var url = "#" + anchor.name; anchor.href = url; }
なるほど。ありがとうございました。