Sleipnir スキン・プラグインスレッド 5rd
すごいニッチなものを作ってみた。2.5.xの「メニューバー→スクリプト」用スクリプト。
FaviconのついていないページにFaviconを設定する。
var pnir = new ActiveXObject('Sleipnir.API');
var id = pnir.GetDocumentID(pnir.ActiveIndex);
var document = pnir.GetDocumentObject(id);
var window = pnir.GetWindowObject(id);
var fico = window.prompt("設定するFaviconのURL", "");
if (fico != null) {
var ftag = document.createElement("LINK");
ftag.rel = "SHORTCUT ICON";ftag.href = fico;
document.getElementsByTagName("HEAD")[0].appendChild(ftag);
window.location.href = window.location.href.replace(/#.*$/,"") + "#";
}
pnir = null;id = null;document = null;window = null;fico = null;ftag = null;