summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
" }}}