The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Nearing Greasemonkey for Browser-of-Choice with the Hoodlum Proxy!

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Red Handed

Posts: 1158
Nickname: redhanded
Registered: Dec, 2004

Red Handed is a Ruby-focused group blog.
Nearing Greasemonkey for Browser-of-Choice with the Hoodlum Proxy! Posted: Aug 26, 2005 9:50 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Red Handed.
Original Post: Nearing Greasemonkey for Browser-of-Choice with the Hoodlum Proxy!
Feed Title: RedHanded
Feed URL: http://redhanded.hobix.com/index.xml
Feed Description: sneaking Ruby through the system
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Red Handed
Latest Posts From RedHanded

Advertisement

Here it is. Day five of the Hoodwink’d docu-drama. Can you believe this? Here, look. We are left with a smoldering meteor from an alien planet in our hands:

hoodlum.rb

No more greasemonkey.

No more HOSTS entry.

Run hoodlum.rb.

Firefox > Preferences > General > Connection Settings… > Manual Proxy > 127.0.0.1 + 37004

Not yet for Safari and IE.

There’s so much to say about this proxy. I’ll start by saying that I barely wrote any of the code. MenTaLguY wrote the good stuff. And Goto Kentaro wrote the really good stuff because he wrote WEBrick::HTTPProxy, which we’re just clawing inside and operating from within.

The overhead view is this:

  1. The prewink method rewrites the request. We serve cached stuff from within the proxy (so the JS file doesn’t get retrieved everytime you go anywhere) and mimick HOSTS.
  2. The upwink method injects a Javascript into the page.
  3. The fixup_script method replaces GM_API methods with HoOdLuM_API methods. This is where browser compatibility stuff will go. We could end up implementing all of Firefox inside IE and Safari, though. So this is still up in the air.

I still want to see what MrCode’s got. Wonderland could be a lot cleaner and could use Ruby alot more effectively. For now, Hoodlum sits on the Javascript side.

Read: Nearing Greasemonkey for Browser-of-Choice with the Hoodlum Proxy!

Topic: Ruby Don't E4X Previous Topic   Next Topic Topic: Installing untrusted PL/Ruby for PostgreSQL

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use