Skip to Content

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, 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 to 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


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 800×600, 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 🙂

To report this post you need to login first.


You must be Logged on to comment or reply to a post.

  1. Former Member
    Hi DJ,

    You got an amazing weblog out here. I love the screencast and the hack, and in that order. Thanks a million !!!

    Subramanian V.

  2. I’ve just discover grasemonkey and this utility is really helpful.
    I’m only curious about the “screencast” how did you do it?
    1. DJ Adams Post author
      Hallo Fidel

      I used vnc2swf –

      (and don’t forget to ‘frame’ the flash movie in the same width/height dimensions (in HTML) as you used in the geometry settings for the vnc server (e.g. 800×600) otherwise you’ll get nasty artifacts in the screencast).


  3. Former Member
    Combining the SSO capabilities and Greasemonkey and your script … whola its an excellent weblog great work thanks a ton and long live mozilla.

  4. Former Member
    During the migration process problems have been reported for this blog. The blog content may look corrupt due to not supported HTML code on this platform. Please adjust the blog content manually before moving it to an official community.
  5. Ok, i know it’s a beta version but my firefox settings allowed me to use it only for a day or two and now it’s gone. I still have the monkey “smiling” and your code works inside the OSS Note, but firefox/google piece has been broken…
    1. DJ Adams Post author
      Hi Greg

      I’m not sure what you mean by “now it’s gone”, especially when you then say “your code works inside the OSS note”. And what’s the “firefox/google piece”?

      Perhaps we can find out what’s going on in your browser and fix it for you.

      OssNoteFix is still working for me here …


      1. Ok, as i said your code works fine, i.e. notes are hypertexted inside the notes themselves, but for some reason my bookmark got wiped out and the redirect stopped working.

        I should actually direct this comment to the other blogger (Easily access SAP notes from Firefox), but i’m not sure about crossposting here. What i call firefox/google piece is quickly becoming the most cherished (expensive) piece of my PC real estate, by which i mean firefox’s address bar which takes me to google’s ‘lucky’ button area or how to get what you want by typing the least amount of keystrokes/mouse clicks.

        Your app is still a nice piece of coding, though.

          1. ok, i don’t really need  tag here then…but i have two complaints this time to SAP:
            the link takes me a frame that ‘shrinks’ and my pageup and pagedown buttons don’t work…since we are talking about usability here…
  6. Former Member
    During the migration process problems have been reported for this blog. The blog content may look corrupt due to not supported HTML code on this platform. Please adjust the blog content manually before moving it to an official community.
  7. Former Member
    Thanks for this contribution. However,…

    SSO works, the bookmark works, I upgraded to Firefox 1.5 and installed Greasemonkey 0.6.4 apparently successfully, installed your script apparently successfully, the “included sites” looks correct, and finally rebooted (WinXP).

    When I try something like “note 19466” the Note comes up, but the Greasemonkey script doesn’t seem to run and don’t get your customizations.  (Javascript is enabled).

    Am I missing something that allows the script to run?

      1. Former Member
        If you download Greasemonkey now it requires Firefox 1.5 so the script won’t work. Can anyone provide me with the exact changes required to make this work in Firefox 1.5?
  8. Former Member
    Very nice DJ, one thing that bothers me is if FF is maximised, once the OSS note is loaded and changes the title it is no longer maximised (ie, you have to click on the “Maximise” icon to maximise FF again).

    Is this because the title is changed? Otherwise, great job. Works like a charm with the FF SAP search  plugins.


Leave a Reply