diff options
author | 2010-07-15 20:50:03 +0200 | |
---|---|---|
committer | 2010-07-15 20:50:03 +0200 | |
commit | f306fa456120b57fd73fca8f6cf8a5c66bf9c68b (patch) | |
tree | 2819862318a3bafdb73d41971e4041c57a9032bf /.conkerorrc | |
parent | 1cd072301b077e2b39175d778ee02bd9a8fc1a64 (diff) | |
parent | 9a029f7b7787318631a95c947078d7ee148925ee (diff) | |
download | dotfiles-f306fa456120b57fd73fca8f6cf8a5c66bf9c68b.tar.gz dotfiles-f306fa456120b57fd73fca8f6cf8a5c66bf9c68b.zip |
Merge branch 'master' of 192.168.1.95:doteverything
Diffstat (limited to '.conkerorrc')
-rw-r--r-- | .conkerorrc | 32 |
1 files changed, 25 insertions, 7 deletions
diff --git a/.conkerorrc b/.conkerorrc index 54a350d..b9bd714 100644 --- a/.conkerorrc +++ b/.conkerorrc @@ -8,14 +8,27 @@ require("clicks-in-new-buffer.js"); sheet.append("stylesheets"); sheet.append("tabs.css"); register_user_stylesheet(make_uri(sheet)); -}*/ +} function test(window) { - var test = window.tab2-bar; - window.buffers.container.removeChild(test); + //var test = window.getElementsByAttribute("id", "tab2-bar"); + //if (test.length > 0) + // window.removeChild(test); + //else + // window.minibuffer.message("no luck"); + var after = window.document.getElementById("minibuffer"); + var testtab = window.document.getElementById("tab2-bar"); + + window["minibuffer"].message("I'm different!"); + + window.tab_bar.destroy(); + delete window.tab_bar; + + window.tab_bar = testtab; + after.parentNode.insertBefore(testtab, after); } -//add_hook("window_initialize_hook", test); +add_hook("window_initialize_late_hook", test);*/ // VARIABLES // Make middle mouse button open new tab in background @@ -28,7 +41,8 @@ define_webjump("delicious", define_webjump("gmail", "https://mail.google.com/mail/#search/%s"); define_webjump("greader", - "http://www.google.com/reader/view/#search/%s/"); + "http://www.google.com/reader/view/#search/%s/", + $alternative="http://reader.google.com"); define_webjump("github", "http://github.com/search?q=%s", $alternative="http://github.com/ryuslash/"); @@ -36,6 +50,8 @@ define_webjump("archwiki", "http://wiki.archlinux.org/index.php?search=%s"); define_webjump("fedorawiki", "https://fedoraproject.org/wiki/search=%s"); +define_webjump("metal-archives", + "http://www.metal-archives.com/search.php?string=%s&type=band"); // FUNCTIONS interactive("delicious-post", @@ -58,7 +74,8 @@ interactive("delicious-post", "&extended=" + encodeURIComponent( yield I.minibuffer.read( - $prompt = "extended description: ")); + $prompt = "extended description: ")) + + "&replace=no"; try { var content = yield send_http_request( @@ -88,7 +105,8 @@ interactive("delicious-post-link", "&extended=" + encodeURIComponent( yield I.minibuffer.read( - $prompt = "extended description: ")); + $prompt = "extended description: ")) + + "&replace=no"; try { var content = yield send_http_request( |