Using WebRunner with docs.google.com

Tags:
A while back I noticed a problem with using WebRunner on Google Docs and Spreadsheets. When you log in to docs.google.com you get an interface for browsing your documents, however, WebRunner launches any opened documents in an external browser window. This is not the desired behavior - I want my documents to open inside of WebRunner. it turns out to be fairly easy to fix this behavior in WebRunner so I modified the source to make documents load in the same window instead of launching Firefox. This could have some side effects but for now it's working for my purposes. I have attached a diff between my version of webrunner.js and the file from Mark Finkle's version 0.5 release. Try it out if you like and let me know how if you run into any problems. I'd like to see this get integrated into the next version of WebRunner if there are not any negative side effects from my changes.
AttachmentSize
webrunner.js.diff1.86 KB
gdocs.webapp110 bytes

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

webrunner on same domain

I think it would be nice if one could force webrunner to open all links - maybe just of the same domain - in the same window or maybe using middleclick, ctrl+click or alt+click to do so, esp. when one wants to use google services. I never liked google's approach of opening new browser windows by default when clicking on any of the topmost links to mail / calendar / docs & spreadsheets / etc... As of now I just forced a link.target =_"top" on all links in the webrunner.js without further distinction as I wouldn't know the js code if statement to make webrunner behave this way for links within the same toplevel domain. I guess, being able to have something like a 'restrictDomain=xyz' parameter in the webapp parameters would make a lot of sense.

I like the idea of

I like the idea of ctrl-click and clat-click, etc... I will see if I can figure out a way to do that in my extension for WebRunner. I have already implemented the domain configuration parameter in webapp files, hopefully that code will make it into the webrunner trunk sometime soon.