diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-02-22 02:32:23 +0100 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-02-22 02:38:48 +0100 |
commit | c553050bf0f4d4e2c5f6e2c8edbbab82061a6a03 (patch) | |
tree | ccb662f364eeb30bfe2deb727c132d80c1a0371f /vimperatorrc | |
parent | 8b2ed7c292cbcf85ff7728d14b30d23c6c7a6dfe (diff) | |
download | dotfiles-c553050bf0f4d4e2c5f6e2c8edbbab82061a6a03.tar.xz |
vimperator: rewrite and merge JS functions for buttons
Diffstat (limited to 'vimperatorrc')
-rw-r--r-- | vimperatorrc | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/vimperatorrc b/vimperatorrc index 4655260..b4461f6 100644 --- a/vimperatorrc +++ b/vimperatorrc @@ -266,27 +266,16 @@ map <C-c>t :exe ":tinyurl "+getBrowser().contentWindow.location.href<CR> " {{{ Javascript functions " -" Show the feed-button in the statusbar +" Show the Feed and Bookmark buttons on the statusbar javascript <<EOF (function(){ - var feedPanel = document.createElement("statusbarpanel"); - feedPanel.setAttribute("id", "feed-panel-clone"); - feedPanel.appendChild(document.getElementById("feed-button")); - feedPanel.firstChild.setAttribute("style", "padding: 0; max-height: 16px;"); + var statusPanel = document.createElement("statusbarpanel"); + statusPanel.setAttribute("id", "buttons-panel-clone"); + statusPanel.appendChild(document.getElementById("feed-button")); + statusPanel.appendChild(document.getElementById("star-button")); + statusPanel.firstChild.setAttribute("style", "padding: 0; max-height: 16px;"); document.getElementById("status-bar") - .insertBefore(feedPanel, document.getElementById("security-button")); -})(); -EOF - -" Show the bookmark-button in the statusbar -javascript <<EOF -(function(){ - var bookPanel = document.createElement("statusbarpanel"); - bookPanel.setAttribute("id", "book-panel-clone"); - bookPanel.appendChild(document.getElementById("star-button")); - bookPanel.firstChild.setAttribute("style", "padding: 0; max-height: 16px;"); - document.getElementById("status-bar") - .insertBefore(bookPanel, document.getElementById("security-button")); + .insertBefore(statusPanel, document.getElementById("security-button")); })(); EOF " }}} |