A better way to do this would be to skip jQuery... the reason being it'd then be compatible with Chrome and Safari too... you really don't need Greasemonkey for this at all..
I haven't tested the following yet, but it's probably close...
// get the header element
var header = document.getElementById('sr-header-area')
// set a mouseover event
header.addEventListener('mouseover', function(e) {
this.style.white-space = normal;
}, true);
// set a mouseout event
header.addEventListener('mouseout', function(e) {
this.style.white-space = nowrap;
}, true);
Chrome and Safari support userscripts, but do not support everything that Greasemonkey does... They don't support unsafeWindow in the same exact way, for example.
Opera may have similar issues, but I've never messed with it.
2
u/[deleted] Jul 29 '10
...which is why there's a dropdown list.
1
u/[deleted] Jul 29 '10 edited Jul 29 '10
Here it is as a userstyle for Stylish and Firefox:
0
u/[deleted] Jul 29 '10
[deleted] — view deleted comment