Additional Blogs by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
qmacro
Developer Advocate
Developer Advocate
0 Kudos

Ahh,OSS notes - a topicImproving the OSS note experienceFOSDEM, and small OSS Notes Browser Hackmy heart.

The OSS Notes Experience

The other day I decided to stop going on about how painful using OSS notes on the web was, and do something about it. So I hacked up aGreasemonkey script,OssNoteFix, that addresses the three main issues I have:

  • Not having the OSS note number in the title of the page makes it hard to manage more than a couple of notes at once
  • Not being able to click on a reference to a further OSS note to go straight to it
  • Having my basic browsing experience messed up by the use of frames

Enter Greasemonkey

Greasemonkey, to quote Mark Pilgrim in his very usefulDive Into Greasemonkey online book, "is a Firefox extension that allows you to write scripts that alter the web pages you visit. You can use it to make a web site more readable or more usable. You can fix rendering bugs that the site owner can't be bothered to fix themselves.". The extension doesn't do anything to web pages by itself, it's the scripts that manipulate the pages once they're loaded into the browser. (And yes, it's for Firefox, a modern, standards-compliant browser. If you're still using Internet Explorer, shame on you.)

Laying The Groundwork

But before we get to the script, let's lay a bit of groundwork that will help smooth things along. Visit Dagfinn's weblog postEasily access SAP notes from Firefox and follow his instructions to set up SSO access to service.sap.com, and to create a bookmark with a custom keyword so you can access OSS notes very simply. The SSO access avoids all those tiresome HTTP authentication popups your browser throws at you each time the front-end machine serving your request changes due to load balancing. The custom keyword bookmark allows you to request OSS notes directly by typing something like this into your address bar:


note 19466
(You can see this in action in the screencast linked below.)

Installing Greasemonkey and the OssNoteFix Script

Once you've got these set up, it's time to install Greasemonkey. Visit the Greasemonkey homepageand follow the link to install it (you might have to add the Greasemonkey site to the list of sites allowed to install software). You'll have to restart Firefox to have this extension take effect.

Now it's time to install the Greasemonkey script that I wrote, "OssNoteFix". Go tohttp://www.pipetree.com/~dj/2005/05/OssNoteFix/ossnotefix.user.js. Because of the ending (.user.js), Greasemonkey recognises it and gives you the option of installing it: Tools->Install User Script (see thescreenshot.)

Once you've got it installed, visit an OSS note page:


note 19466
and notice that, once it's loaded:
  • the OSS note number is in the title
  • the numbers of the further notes referenced are clickable
  • there are no frames
Hurrah!

Watch the Screencast

I put together ascreencastwhich demonstrates the creation of the OSS note bookmark, a visit to an OSS note page before OssNoteFix, the installation of the OssNoteFix user script, and the visit to an OSS note page after the installation. I'd already set up the SSO before I started recording, as that would have taken too long (and would be too boring to watch!) (Top tip: the screencast is at 800x600, so hit F11 to get fullscreen mode in your browser. Also, it's a 3 Meg file, so please be patient while it comes down the pipe!).

Caveat Emptor

Of course, the usual caveats apply - it's a beta, SAP's service portal pages are horribly complex and any change may break the script, and your own mileage may vary, blah blah blah. Also, the script sometimes matches 5 or 6 digit numbers that aren't OSS notes. But it works for me. It was especially useful this week as I was installing a CRM 4.0 system.

This script is free and open source software, use it as you see fit, and if you're not happy, you can get your money back 🙂

30 Comments