jr3 (63K)

Digg is my guilty pleasure...

Posted by Jessica Tue, 01 May 2007 17:18:00 GMT

Dear Digg,

I just don’t know how to quit you. Your front page with its ultimate tutorial lists, DIY hacks, news of new software releases, links to photos of scantily-clad women & oh God, don’t get me started on diggnation. Digg, you make me feel… inadequate. There’s always something new to tweak, new software to try, links to bookmark, news stories to, err…’research’. I can’t keep up.

And who’s fault is it that I feel inadequate? Well, I certainly can’t be the one to blame; you are everywhere! Even after removing all digg artifacts from my browser, I cannot escape the ‘digg this’ buttons & the ‘top-on-digg’ widgets slopped on various blogs (I think there was one on this blog at one time). You are in my internetz, destroying my blankspaces & thus, my self-esteem (not that that is terribly hard).

I want my simple, pre-digg life back; a life where I did important things, like save kittens & write “bad” poetry.

Fortunately, my interest in mouseHole has given me reason to spend less time at digg and more time at code.whytheluckystiff.net/mouseHole/ (Google says I’ve made 6 visits since the middle of this month! & that excludes all of the internet stalking I’ve been doing at the library). Now, I know what your’e thinking… “Just write a nice little mouseHole script to removes all of the digg paraphernalia from around the web.” And writing such a script would be a smart thing for me to do; my time away from digg would result in more time away from digg. But alas, I can’t seem to quit you. In fact, the mouseHole script that I ended up writing [1] uses your new API to display the number of diggs for the page I am currently viewing, along with (what else) a link to that page on digg.

And you know, the thing is that I suck at writing Ruby. Hell, I don’t even know if I’m a programmer yet. I have lots to learn and do with Ruby; I don’t have time for you & your front page and especially not for your comments or video podcasts. Maybe you could meet me half way and make yourself a paid-members only site? No? Then, I am hopelessly yours. Just promise me that you won’t take all of my time and that if you ever leave me for good, that you will return that little piece of my heart that I have given to you.

Lovingly, but irritatedly,

JessiRae

[1] Using this Ruby Digg Wrapper, I added to the browserbar.rb mouseHole script that I created earlier. The browserbar script places a list of links at the top of every page; the list forms a bar, similar to the plugins and quick links firefox makes available. Yeah, sure you are making all of your web surfing known to digg, but that just makes the guilt stronger. To use the digg “plugin”, place the digg.rb wrapper in your {mouseHole_root}/lib/mouseHole directory.


UPDATE:

Digg is sick right now. :-(

Get well soon.

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