jr3 (63K)

Browser Bar for mouseHole

Posted by Jessica Tue, 24 Apr 2007 23:06:00 GMT

Add the following line to any of your user scripts in your .mouseHole folder to add a browser bar at the top of every page your view with mouseHole; like this…
def rewrite(page)
  document.search('//a[@href]') do |link|
    href = URI(link.attributes['href']) rescue nil
    next unless href && href.host && href.host != page.location.host
    link.after '<span style="font-size:8px">[' + href.host + ']</span>'
  end

#add the following line 
  document.search("body").prepend("<a href=\"http://del.icio.us/jowensbysandifer\">" 
  +"<img src=\"http://127.0.0.1:3704/doorway/static/images/delicious.gif\" />" 
  +"</a>")
#just include your links to your favorite sites and you can check them... 
#   no matter where you are

end

Oh and don’t forget to place any icons in the static/images folder in your mouseHole application.

-Teehe! And if I knew how to get the url to the script, I could submit sites to del.icio.us (or whatever site I wanted) via javascript… but that might be dangerous!-

UPDATE:

Here’s how to submit a site to del.icio.us via the browser bar by getting the page url.

Step 1: save the request in proxyhandler.rb as $request. A global… bad I know :-( I’m still figuring out how mouseHole works. Maybe the best thing to do would be to write the value out to the database?

Step 2: add submit html to a user script or create a new one (I call mine browserbar.rb), like this…

document.search("body").prepend("<a href=\"http://del.icio.us/jowensbysandifer?url=" 
+ $request.to_s + "&submit=save&jump=no\">" 
+" <img src=\"http://127.0.0.1:3704/doorway/static/images/delicious.gif\" /></a>")

Step 3: Restart mouseHole.

Install mouseHole on Ubuntu 1

Posted by Jessica Mon, 15 Jan 2007 06:23:00 GMT

mouseHole is a personal proxy server written in ruby, allowing you to…

rewrite the web as you view it, altering content and behavior as you browse. Basically, it’s an alternative to Greasemonkey, which does similar things from inside the Firefox web browser.

To get mouseHole up and running, first install the required gems (json and sqlite3) if you don’t already have them installed. I encountered the following issues while installing those gems…

Lastly, if you are running Debian or Ubuntu, visit http://localhost:3704 instead of http://127.0.0.1:3704 after starting mouseHole.


designed by jowensbysandifer