+Ramin+
2007-10-09 22:22:06 UTC
I have:
-- begin HTML --------
<html>
<head> <title> Some Title </title> </head>
<body onLoad="self.moveTo(0,0);
self.resizeTo(screen.availWidth,screen.availHeight);">
The body goes here...
</body>
</html>
--------- end HTML --
I need to parse this html with a greasemonky script so that I remove
the onLoad event and get the following:
-- begin HTML --------
<html>
<head> <title> Some Title </title> </head>
<body onLoad="">
The body goes here...
</body>
</html>
--------- end HTML --
My script looks like this:
-- begin JavaScript ------------------------
// ==UserScript==
// @name Remove Offending Autoresize
// @namespace http://userscripts.org/RemoveOffendingAutoresize
// @description Remove Offending Autoresize for foo.com
// @include *
// ==/UserScript==
function main()
{
document.documentElement.body.onLoad.value = "";
}
main();
--------------------- end JavaScript -----
Why is it not working?
Your help is appreciated :)
-Ramin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "greasemonkey-users" group.
To post to this group, send email to greasemonkey-***@googlegroups.com
To unsubscribe from this group, send email to greasemonkey-users-***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/greasemonkey-users?hl=en
-~----------~----~----~----~------~----~------~--~---
-- begin HTML --------
<html>
<head> <title> Some Title </title> </head>
<body onLoad="self.moveTo(0,0);
self.resizeTo(screen.availWidth,screen.availHeight);">
The body goes here...
</body>
</html>
--------- end HTML --
I need to parse this html with a greasemonky script so that I remove
the onLoad event and get the following:
-- begin HTML --------
<html>
<head> <title> Some Title </title> </head>
<body onLoad="">
The body goes here...
</body>
</html>
--------- end HTML --
My script looks like this:
-- begin JavaScript ------------------------
// ==UserScript==
// @name Remove Offending Autoresize
// @namespace http://userscripts.org/RemoveOffendingAutoresize
// @description Remove Offending Autoresize for foo.com
// @include *
// ==/UserScript==
function main()
{
document.documentElement.body.onLoad.value = "";
}
main();
--------------------- end JavaScript -----
Why is it not working?
Your help is appreciated :)
-Ramin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "greasemonkey-users" group.
To post to this group, send email to greasemonkey-***@googlegroups.com
To unsubscribe from this group, send email to greasemonkey-users-***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/greasemonkey-users?hl=en
-~----------~----~----~----~------~----~------~--~---