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.

Cleaning out your Browser Bookmarks

Posted by Jessica Mon, 06 Nov 2006 04:12:00 GMT

I don’t sync my browser bookmarks with my del.icio.us bookmarks. The possibility that some of my browser bookmarks might become public is enough to keep me from setting up a way to keep everything organized. In general, my bookmarking strategy is this:
  • Browser bookmarks are for frequently used sites
  • Del.icio.us bookmarks are for articles and posts that are interesting or helpful, or require further attention (finish reading, further research on subject etc.)

This strategy makes it easier to go through bookmarks that end up in my browser “Favorites”. If the site doesn’t fit into either of these categories, it is deleted.

5 tips for Weeding out your Browser Bookmarks

  1. If you are using firefox or safari or another browser that has tabbed browsing, make sure to use the open in tabs feature. Not familiar with this feature? You can view all of the sites in a folder without double clicking all of the links in that folder. Just right click on the folder in your bookmarks sidebar, and select “Open in Tabs”.
  2. Match your bookmark organization with your file system organization. For instance, if your My Documents folder has three sub-folders (school, work, media), then your browser bookmark folders should also atleast have school, work and media folders.
  3. Unsure about whether to delete some set of bookmarks? Write a post on your blog about them. I was unsure about whether or not to delete some links to scholarship sites that I had been saving. So, I wrote a short post about those scholarship opportunities and posted them here. Now, not only do I still have access to those links, I have passed on some information that someone else might find useful.
  4. Still unsure about whether or not to delete a bookmark? Don’t delete it. Maintain a large “Reference” folder; this is where most of your bookmarks should be. The links in the Reference folder are what you are going to look through when you are trying to find that awesome site you used three years ago to create a presentation that you have been asked to give again.
  5. Create action folders. I use to.buy, to.blog, to.read, to.try and email. I like these folders because I can quickly put links here and not worry if they stay there for a while or if I forget about them.

designed by jowensbysandifer