From 958913f435879187a6e0be2256f312fae997f4f8 Mon Sep 17 00:00:00 2001 From: hogelog Date: Mon, 25 Jan 2010 14:35:12 +0000 Subject: * rename tabcommands.js -> tabmixplus.js git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@36532 d0d07461-0603-4401-acd4-de1884942a52 --- tabcommands.js | 59 ---------------------------------------------------------- tabmixplus.js | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+), 59 deletions(-) delete mode 100644 tabcommands.js create mode 100644 tabmixplus.js diff --git a/tabcommands.js b/tabcommands.js deleted file mode 100644 index eb1b4de..0000000 --- a/tabcommands.js +++ /dev/null @@ -1,59 +0,0 @@ -// PLUGIN_INFO//{{{ -var PLUGIN_INFO = - - {NAME} - add some tab commands - hogelog - 0.0.1 - 2.2 - 2.2 - http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/tabcommands.js - -; -//}}} -(function(){ -commands.add(["dup[licate]"], "duplicate current tab", function(args) { - gBrowser.duplicateTab(gBrowser.mCurrentTab); -}); -commands.add(["ren[ame]"], "rename current tab", function(args) { - gBrowser.renameTab(gBrowser.mCurrentTab); -}); -commands.add(["freeze"], "freeze current tab", function(args) { - let protect = gBrowser.mCurrentTab.hasAttribute("protected"); - let lock = gBrowser.mCurrentTab.hasAttribute("locked"); - if (protect && lock) { - gBrowser.mCurrentTab.removeAttribute("protected"); - gBrowser.mCurrentTab.removeAttribute("locked"); - } else - gBrowser.freezeTab(gBrowser.mCurrentTab); -}); -commands.add(["protect"], "protect current tab", function(args) { - let protect = gBrowser.mCurrentTab.hasAttribute("protected"); - if (protect) - gBrowser.mCurrentTab.removeAttribute("protected"); - else - gBrowser.mCurrentTab.setAttribute("protected", true); -}); -commands.add(["lock"], "lock current tab", function(args) { - let lock = gBrowser.mCurrentTab.hasAttribute("locked"); - if (lock) - gBrowser.mCurrentTab.removeAttribute("locked"); - else - gBrowser.mCurrentTab.setAttribute("locked", true); -}); - -})(); -// vim: fdm=marker sw=4 ts=4 et: diff --git a/tabmixplus.js b/tabmixplus.js new file mode 100644 index 0000000..9321401 --- /dev/null +++ b/tabmixplus.js @@ -0,0 +1,59 @@ +// PLUGIN_INFO//{{{ +var PLUGIN_INFO = + + {NAME} + add some tabmixplus commands + hogelog + 0.0.1 + 2.2 + 2.2 + http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/tabmixplus.js + +; +//}}} +(function(){ +commands.add(["dup[licate]"], "duplicate current tab", function(args) { + gBrowser.duplicateTab(gBrowser.mCurrentTab); +}); +commands.add(["ren[ame]"], "rename current tab", function(args) { + gBrowser.renameTab(gBrowser.mCurrentTab); +}); +commands.add(["freeze"], "freeze current tab", function(args) { + let protect = gBrowser.mCurrentTab.hasAttribute("protected"); + let lock = gBrowser.mCurrentTab.hasAttribute("locked"); + if (protect && lock) { + gBrowser.mCurrentTab.removeAttribute("protected"); + gBrowser.mCurrentTab.removeAttribute("locked"); + } else + gBrowser.freezeTab(gBrowser.mCurrentTab); +}); +commands.add(["protect"], "protect current tab", function(args) { + let protect = gBrowser.mCurrentTab.hasAttribute("protected"); + if (protect) + gBrowser.mCurrentTab.removeAttribute("protected"); + else + gBrowser.mCurrentTab.setAttribute("protected", true); +}); +commands.add(["lock"], "lock current tab", function(args) { + let lock = gBrowser.mCurrentTab.hasAttribute("locked"); + if (lock) + gBrowser.mCurrentTab.removeAttribute("locked"); + else + gBrowser.mCurrentTab.setAttribute("locked", true); +}); + +})(); +// vim: fdm=marker sw=4 ts=4 et: -- cgit v1.2.3