From cb190efe147b583d57302f19547522e2b9c05c38 Mon Sep 17 00:00:00 2001 From: snaka Date: Wed, 4 Mar 2009 11:23:13 +0000 Subject: Add PLUGIN_INFO and etc... git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@30820 d0d07461-0603-4401-acd4-de1884942a52 --- prevent_focus_ietab.js | 70 ++++++++++++++++++++++++++++++++++---------------- 1 file changed, 48 insertions(+), 22 deletions(-) (limited to 'prevent_focus_ietab.js') 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. -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 +// +// 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縺ォ蜍晄焔縺ォ繝輔か繝シ繧ォ繧ケ繧貞・ェ繧上l縺ヲ縺昴≧縺穂ク崎ス縺ォ縺ェ繧九ョ繧帝亟縺 + 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: -- cgit v1.2.3