MouseGestures.uc.js (Lite Version)について質問お願いします。

//選択文字列を検索バーに入れる
document.getElementById("searchbar").value = content.getSelection();
//クリップボードの文字列を検索バーに入れる
document.getElementById("searchbar").value = readFromClipboard();

上記を、文字が選択されていなければクリップボードの文字列を検索バーに入れる
と改良していただけませんでしょうか?
ご教示の程、よろしくお願いします。