// // prevent_focus_ietab.js // // LICENSE: {{{ // Copyright (c) 2009 snaka // // Distributable under the terms of an new BSD style license. // }}} // // PLUGIN INFO: {{{ var PLUGIN_INFO = prevent_focus_ietab This plugin prevents focusing IETab automaticaly. IETabに勝手にフォーカスを奪われてそうさ不能になるのを防ぐ 2.0pre 2.0 http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/prevent_focus_ietab.js snaka MIT style license 1.0.1 ; // }}} (function() { if (!gIeTab || !gIeTab.onTabSelected) return; liberator.log("replace IeTab.onTabSelected() function"); var func = gIeTab.onTabSelected.toSource(); var newFunc = func.replace(/window\.setTimeout\(gIeTab\.focusIeTab, 0\);/, ''); gIeTab.removeEventListener("appcontent", "select", gIeTab.onTabSelected); gIeTab.addEventListener("appcontent", "select", new Function(newFunc)); })(); // vim:sw=2 ts=2 et si fdm=marker: