diff --git a/.conkerorrc b/.conkerorrc index e9fea2a..6e06630 100644 --- a/.conkerorrc +++ b/.conkerorrc @@ -11,11 +11,24 @@ require("clicks-in-new-buffer.js"); }*/ 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 @@ -23,12 +36,13 @@ clicks_in_new_buffer_target = OPEN_NEW_BUFFER_BACKGROUND; // WEBJUMPS define_webjump("delicious", - "http://delicious.com/search?p=linux&lc=0&context=userposts%7Cslashed%7C", + "http://delicious.com/search?p=linux&lc=0&context=userposts%7Cslashed%7C&replace=no", $alternative="http://delicious.com/slashed"); 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",