20/05/20 01:06:10.76 V73oTmm+0.net
FoxyGesturesで、現在選択されている文字列を検索窓に移すスクリプトを作ろうとしているのですが、
var selstr = window.getSelection().toString();
if (selstr) {
executeInBackground("(" + function (str) {
document.getElementById("searchbar").value = str;
} + ")" , [selstr]);
}
このようにすると、document.getElementById("searchbar") が null になってしまいます。
Firefox Quantum では、検索窓のelementを取得するにはどうすればいいのでしょうか?