// 以下のFirefox用アドオンにタグ選択パネルを付加するuserChrome.jsスクリプトです // Hatebu IncSearch, livedoor clip IncSearch, del.icio.us IncSearch, Google Bookmarks IncSearch (function(){ const LIVEDOOR_URL = 'chrome://livedoorclip_incsearch/content/view.html'; const LIVEDOOR_DIR = 'livedoorclip_incsearch'; const HATEBU_URL = 'chrome://hatebu_incsearch/content/view.html'; const HATEBU_DIR = 'hatebu_incsearch'; const DELICIOUS_URL = 'chrome://delicious_incsearch/content/view.html'; const DELICIOUS_DIR = 'delicious_incsearch'; const GOOGLE_URL = 'chrome://googlebookmarks_incsearch/content/view.html'; const GOOGLE_DIR = 'googlebookmarks_incsearch'; var textBox; var init = function(doc, dirName){ var tagView; var tagList; var hideButton; var statement; var tags = []; var tagListDisplay = true; // 登録されている全てのタグを取得 statement = createStatement(dirName); while (statement.step()) { if(statement.row['tags']){ tags = tags.concat(statement.row['tags'].replace(/\[(.+?)\]/g, '$1').split(' ')); } } statement.reset(); tags = uniq(tags).sort(); textBox = doc.getElementById('text'); tagView = doc.createElement('div'); tagView.style.marginLeft = '150px'; tagList = createTagList(doc); for(var i=0; i