A Greasemonkey script for BSC documents (449 Views)
Reply
Honored Contributor
Michael Leu
Posts: 508
Registered: ‎01-17-2005
Message 1 of 17 (449 Views)

A Greasemonkey script for BSC documents

Hello

To celebrate the move from docs.hp.com to the Business Support Center here is a small userscript that hopefully makes it easier to find the excellent documentation HP writes. :-)

What it does:
- removes the column width so the document title is as wide as possible
- hides columns "Size (MB)" and "Estimated download time" to make it even wider

About Userscripts and Greasemonkey: http://en.wikipedia.org/wiki/Greasemonkey

Feedback/Improvements welcome!
---------------------------------------------------------------------------------
Navigation: Forum Site Map // ye olde ITRC Tree
@HP: please get rid of the Passport login timeout
Please use plain text.
Acclaimed Contributor
James R. Ferguson
Posts: 21,184
Registered: ‎07-06-2000
Message 2 of 17 (448 Views)

Re: A Greasemonkey script for BSC documents

Hi Michael:

A friend of pointed me to this and I want to thank you for doing what the webmaster should have done!

This is a very, very welcome contribution. It underscores the value of open source and everyone, like yourself, who "pays it forward".

Thanks for making the "new-and-improved" (*not*!) BSC palatable. I agree that the documentation there is some of the best on the web. It's clearly the presentation layer that needs work from folks like you. Thanks!

Regards!

...JRF...
Please use plain text.
Honored Contributor
Michael Leu
Posts: 508
Registered: ‎01-17-2005
Message 3 of 17 (448 Views)

Re: A Greasemonkey script for BSC documents

Thanks for your kind words JRF, you have motivated me to make a new userscript this weekend :-)

What it does:
- makes the document tables sortable
- can be combined with the old script above

It uses the excellent sorttable.js from
http://www.kryogenix.org/code/browser/sorttable/

I had to remove the alternating grey lines because they got mixed up when sorting...

As always, feedback and improvements are very welcome!
---------------------------------------------------------------------------------
Navigation: Forum Site Map // ye olde ITRC Tree
@HP: please get rid of the Passport login timeout
Please use plain text.
Acclaimed Contributor
James R. Ferguson
Posts: 21,184
Registered: ‎07-06-2000
Message 4 of 17 (446 Views)

Re: A Greasemonkey script for BSC documents

Hi (again) Michael:

That's an awesome contribution yet again! I simply installed the second script in Greasemonkey to run after the first one re-formats the page; and, VOILA!

Regards!

...JRF...
Please use plain text.
Honored Contributor
Patrick Wallek
Posts: 13,717
Registered: ‎06-21-2000
Message 5 of 17 (446 Views)

Re: A Greasemonkey script for BSC documents

EXCELLENT!!!!!!! This makes the web page usable! HP -- Take notes here!
Please use plain text.
Outstanding Contributor
Pete Randall
Posts: 16,205
Registered: ‎11-03-1996
Message 6 of 17 (446 Views)

Re: A Greasemonkey script for BSC documents

I noticed this pop up yesterday. With Jim's resounding endorsement and my own oft-voiced frustrations with the BSC documentation, this sounded fascinating. Now Patrick chimes in positively as well.

I'm downloading and installing today, but probably won't get much chance to play until after vacation, but Thankyou in advance, Michael. I'm sure I'm going to like it.


Pete

Pete
Please use plain text.
Esteemed Contributor
Modris Bremze
Posts: 337
Registered: ‎09-11-2009
Message 7 of 17 (446 Views)

Re: A Greasemonkey script for BSC documents

There is also a Greasemonkey script for the ITRC, which fixes links by removing the javascript from them so they are middle-clickable and easier to copy which makes the forums a bit more useable.

http://userscripts.org/scripts/show/57223
Please use plain text.
Outstanding Contributor
Pete Randall
Posts: 16,205
Registered: ‎11-03-1996
Message 8 of 17 (446 Views)

Re: A Greasemonkey script for BSC documents

OK, I'll admit my stupidity.

How am I supposed to install the script? I installed the Greasemonkey add-on and started reading the manual. It says you can install by "click(ing) a link on a web page" or "drag(ging) and drop(ping) a local file" or by use(ing) the File > Open File dialog". All of those methods simply open and display the script source and I never see any installation dialog.

What am I missing?


Pete

Pete
Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,750
Registered: ‎03-06-2006
Message 9 of 17 (446 Views)

Re: A Greasemonkey script for BSC documents

>Pete: I'll admit my stupidity.

I only got a little farther than you. :-(

>All of those methods simply open and display the script source and I never see any installation dialog.

Right.
I went to Tools > Greasemonkey > New User script

(I wasn't sure what to put in Namespace?)
Then it invoked the wrong type of editor (vi) and I don't have a chance to change it now. I suppose I would have to uninstall greasemonkey and reinstall it?

But I couldn't get it to work on the BCS pages.
Please use plain text.
Honored Contributor
Michael Leu
Posts: 508
Registered: ‎01-17-2005
Message 10 of 17 (446 Views)

Re: A Greasemonkey script for BSC documents

Sorry I should have uploaded it to userscripts.org in the first place. :-)

HP BSC document table sort
http://userscripts.org/scripts/show/72322

HP BSC document table widener
http://userscripts.org/scripts/show/72321
---------------------------------------------------------------------------------
Navigation: Forum Site Map // ye olde ITRC Tree
@HP: please get rid of the Passport login timeout
Please use plain text.
Outstanding Contributor
Pete Randall
Posts: 16,205
Registered: ‎11-03-1996
Message 11 of 17 (414 Views)

Re: A Greasemonkey script for BSC documents

Thanks again, Michael! I'll give that a try.


Pete

Pete
Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,750
Registered: ‎03-06-2006
Message 12 of 17 (414 Views)

Re: A Greasemonkey script for BSC documents

>Sorry I should have uploaded it to userscripts.org in the first place.

Well those work. Not sure what was different other than vi would have problems with the long lines?

How do you turn off greasemonkey? I make the monkey frown but the tables are still sortable.

Ah, I have to reload the page.

Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,750
Registered: ‎03-06-2006
Message 13 of 17 (414 Views)

Re: A Greasemonkey script for BSC documents

>MEP Then it invoked the wrong type of editor (vi) and I don't have a chance to change it now.

If you use "about:config" you can find
greasemonkey.editor and change it. I was grepping my .firefox files and found prefs.js and then google found:
http://www.mozilla.org/unix/customizing.html
Please use plain text.
Honored Contributor
Viktor Balogh
Posts: 1,007
Registered: ‎03-15-2009
Message 14 of 17 (414 Views)

Re: A Greasemonkey script for BSC documents

Thank you Michael, it comes very handy for me!
****
Unix operates with beer.
Please use plain text.
Honored Contributor
Hakki Aydin Ucar
Posts: 1,313
Registered: ‎08-16-2006
Message 15 of 17 (414 Views)

Re: A Greasemonkey script for BSC documents

thank you for your efforts!
Hakki
Please use plain text.
Honored Contributor
Michael Leu
Posts: 508
Registered: ‎01-17-2005
Message 16 of 17 (414 Views)

Re: A Greasemonkey script for BSC documents

Just a quick reminder, please use these links and not the attachments:

HP BSC document table sort
http://userscripts.org/scripts/show/72322

HP BSC document table widener
http://userscripts.org/scripts/show/72321

Thanks.
---------------------------------------------------------------------------------
Navigation: Forum Site Map // ye olde ITRC Tree
@HP: please get rid of the Passport login timeout
Please use plain text.
Honored Contributor
likid0
Posts: 977
Registered: ‎03-01-2005
Message 17 of 17 (414 Views)

Re: A Greasemonkey script for BSC documents

Just found out this thread, and what can I say.. , First Class !! , very useful.

Thanks for fixing part of the mess in the BSC.
Windows?, no thanks
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation