aboutsummaryrefslogtreecommitdiffstats
path: root/commandBookmarklet.js
AgeCommit message (Expand)Author
2011-06-17コマンド定義済みの場合にメッセージがうざいので確認...anekos
2010-11-29Fix <updateURL>anekos
2009-06-18security fix: Components.util.Sandbox(window) can use xpconnectteramako
2009-05-11整数を設定すると誤認するのを修正anekos
2009-05-10decodeURIComponent するように修正anekos
2009-05-10NoScript 対応(?) Sandbox で実行するオプション追加anekos
2008-12-24add updateURL for pluginManager.jssuVene
2008-12-11for の中にさらに let があるのはイマイチなので forEach に...anekos
2008-12-11for let の罠にはまっていたので救い出した。anekos
2008-12-11command_bookmarklet_prefix の空白指定を可能にしたanekos
2008-12-11command_bookmarklet_prefix を追加anekos
2008-12-11 * fixed a regex.drry
2008-12-11split detail to default (no lang attr) and Japanese (lang attr is "ja").janus_wel
2008-12-11refactoring.janus_wel
2008-11-262.0pre対応pekepeke
2008-11-21仕様変更に対応。anekos
2008-11-01 * fixed a regex.drry
2008-11-01handling for 2.0prepekepeke
2008-08-06なぜか escapeHTML していたのを修正。anekos
2008-04-09lang/javascript/vimperator-plugins/trunk/commandBookmarklet.js:drry
2008-04-08lang/javascript/vimperator-plugins/trunk/commandBookmarklet.js:drry
2008-03-31import from project-p.jpha1t
="s1">'AB8ALAAAAAAQABAAAAV/4Cd+Xml6Y0pGTosgEap6G0YQh6FDskhjGg0AMJkwAjxfBygkGhmCAAXl'+ '6QyGnuLFI4g+qNbixLMNdBNfkpXBLncbial6AC17Gvg4eND1BPB3cHJVBguGhwsSHHo+GRqKHJGR'+ 'CQo9JI4WBZoFFpUVMw8QCqMQU58qJCclqKytIQA7'; let isOnLine = window.navigator.onLine; // build panel const doc = window.document; let panel = doc.createElement('statusbarpanel'); panel.setAttribute('id', 'panel-toggline'); panel.setAttribute('class', 'statusbarpanel-iconic'); panel.setAttribute('tooltiptext', isOnLine ? onLineText : offLineText); panel.setAttribute('src', isOnLine ? onLineIcon : offLineIcon); // insert panel let positionMarker = doc.getElementById('security-button'); positionMarker.parentNode.insertBefore(panel, positionMarker); // register events window.addEventListener( 'online', function () { panel.setAttribute('src', onLineIcon); panel.setAttribute('tooltiptext', onLineText); }, false ); window.addEventListener( 'offline', function () { panel.setAttribute('src', offLineIcon); panel.setAttribute('tooltiptext', offLineText); }, false ); // register command commands.addUserCommand( ['toggline'], 'toggle online/offline', function () { BrowserOffline.toggleOfflineStatus(); }, {} ); } )(); // vim: set sw=4 ts=4 et;