summaryrefslogtreecommitdiff
path: root/vimperatorrc
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2010-02-22 02:32:23 +0100
committerAdrian C. (anrxc) <anrxc@sysphere.org>2010-02-22 02:38:48 +0100
commitc553050bf0f4d4e2c5f6e2c8edbbab82061a6a03 (patch)
treeccb662f364eeb30bfe2deb727c132d80c1a0371f /vimperatorrc
parent8b2ed7c292cbcf85ff7728d14b30d23c6c7a6dfe (diff)
downloaddotfiles-c553050bf0f4d4e2c5f6e2c8edbbab82061a6a03.tar.xz
vimperator: rewrite and merge JS functions for buttons
Diffstat (limited to 'vimperatorrc')
-rw-r--r--vimperatorrc25
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
" }}}