Changeset 11680
- Timestamp:
- 05/16/08 11:16:46 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/vimperator-plugins/trunk/autoIgnoreKey.js
r9171 r11680 40 40 + "$", "i")); 41 41 42 document.getElementById('appcontent').addEventListener('DOMContentLoaded',function(event){ 43 var uri = event.target.documentURI; 42 document.getElementById('appcontent').addEventListener('DOMContentLoaded',passAllKeysIfTarget,false); 43 getBrowser().mTabBox.addEventListener('TabSelect',passAllKeysIfTarget,false); 44 45 function passAllKeysIfTarget() { 46 var uri = content.document.documentURI; 44 47 liberator.modes.passAllKeys = isMatch(uri); 45 48 //liberator.log('load page: ' + gBrowser.selectedBrowser.contentDocument.URL); 46 },false); 47 48 getBrowser().mTabBox.addEventListener('TabSelect',function(event){ 49 var uri = this.parentNode.currentURI.spec; 50 liberator.modes.passAllKeys = isMatch(uri); 51 //liberator.log('select page: ' + gBrowser.selectedBrowser.contentDocument.URL); 52 },false); 49 } 53 50 54 51 function isMatch(uri) ignorePagesList.some(function(e) e.test(uri))
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)