aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnaka2009-03-04 11:23:13 +0000
committersnaka2009-03-04 11:23:13 +0000
commitcb190efe147b583d57302f19547522e2b9c05c38 (patch)
tree75425249d1a887cdb00f66119ce154697073e918
parentb6e8cf19dcd9b08ba31f5b67187f90fe7dde55d7 (diff)
downloadvimperator-plugins-cb190efe147b583d57302f19547522e2b9c05c38.tar.bz2
Add PLUGIN_INFO and etc...
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@30820 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r--prevent_focus_ietab.js70
1 files changed, 48 insertions, 22 deletions
diff --git a/prevent_focus_ietab.js b/prevent_focus_ietab.js
index c4deb1f..d0d8adc 100644
--- a/prevent_focus_ietab.js
+++ b/prevent_focus_ietab.js
@@ -1,22 +1,48 @@
-/*
-
-prevent_focus_ietab.js
-
-Prevent focusing IE Tab when select a tab that renderd in IE Tab plugin.
-IE Tab に勝手にフォーカスを奪われて操作不能になるのを防ぐ
-
-Copyright (c) 2009, snaka<snaka.gml@gmail.com>.
-All rights reserved.
-This software distribute under term of new BSD style license.
-
-*/
-(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));
-
-})();
+//
+// prevent_focus_ietab.js
+//
+// LICENSE: {{{
+// Copyright (c) 2009 snaka<snaka.gml@gmail.com>
+//
+// Distributable under the terms of an new BSD style license.
+// }}}
+//
+// PLUGIN INFO: {{{
+var PLUGIN_INFO =
+<VimperatorPlugin>
+ <name>prevent_focus_ietab</name>
+ <description>This plugin prevents focusing IETab automaticaly.</description>
+ <description lang="ja">IETab縺ォ蜍晄焔縺ォ繝輔か繝シ繧ォ繧ケ繧貞・ェ繧上l縺ヲ縺昴≧縺穂ク崎ス縺ォ縺ェ繧九ョ繧帝亟縺</description>
+ <minVersion>2.0pre</minVersion>
+ <maxVersion>2.0</maxVersion>
+ <updateURL>http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/prevent_focus_ietab.js</updateURL>
+ <author mail="snaka.gml@gmail.com" homepage="http://vimperator.g.hatena.ne.jp/snaka72/">snaka</author>
+ <license>MIT style license</license>
+ <version>1.0.1</version>
+ <detail><![CDATA[
+ == Subject ==
+ This plugin prevents IEtab get focusing with mannerless.
+ == Usage ==
+ Place this file to vimp's plugin directory. That's all.
+ ]]></detail>
+ <detail lang="ja"><![CDATA[
+ == 讎りヲ ==
+ IETab縺ォ繝輔か繝シ繧ォ繧ケ繧貞享謇九↓螂ェ繧上l縺ヲ謫堺ス應ク崎ス縺ォ縺ェ繧九ョ繧帝亟縺舌
+ == 菴ソ縺譁ケ ==
+ vimp縺ョplugin繝繧」繝ャ繧ッ繝医Μ縺ォ縺薙ョ繝輔ぃ繧、繝ォ繧呈シ邏阪@縺ヲ縺上□縺輔>縲ゅ◎繧後□縺代〒縺吶
+ ]]></detail>
+</VimperatorPlugin>;
+// }}}
+
+(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: