...

View Full Version : Converting Greasemonkey to IE?



thegooddale
09-17-2005, 02:58 PM
Hi, I'm just beginning to learn Javascript and I would like to know how difficult it would be to convert a rather complicated Greasemonkey script so it would work in Internet Explorer.

I would most likely be using this plugin http://forum.maxthon.com/forum/index.php?showtopic=19496 for the Maxthon browser or Turnabout http://www.reifysoft.com/turnabout.php.

The XPath function is the main problem isn't it? I don't fully understand yet how XPath works (the http://www.w3.org/TR/xpath site is a bit verbose). From what I have read, IE doesn't support this very well. Would I have to change all of the instances in the script where this is used?

I hope my question isn't too vague.
Cheers.

martin_narg
09-17-2005, 03:07 PM
Converting the script should not generally be too hard to an experienced developer, but the greasemonkey extension cannot be replicated in IE. Greasemonkey applies a user-written JavaScript to any webpage they choose to when using FireFox.

To run the script in IE, you would need to include your script in the webpage you are trying to view. Simply put, GreaseMonkey includes scripts to a page on the client machine (your computer) but IE will only run scripts from the server - where you have no control.

Hope this helps

m_n

thegooddale
09-17-2005, 03:31 PM
the greasemonkey extension cannot be replicated in IE. Greasemonkey applies a user-written JavaScript to any webpage they choose to when using FireFox.

To run the script in IE, you would need to include your script in the webpage you are trying to view. Simply put, GreaseMonkey includes scripts to a page on the client machine (your computer) but IE will only run scripts from the server - where you have no control.


Hi, thanks for the reply. The two plugins I mentioned enable IE users to run client-side scripts in practically the same way as Greasemonkey does for Firefox.


Converting the script should not generally be too hard to an experienced developer,

Would I be better off just trying to duplicate the functions of the script myself rather than trying to convert it?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum