Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Sep 2005
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Converting Greasemonkey to IE?

    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...howtopic=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.

  • #2
    Regular Coder martin_narg's Avatar
    Join Date
    Jul 2002
    Location
    Chamonix, France
    Posts
    600
    Thanks
    1
    Thanked 3 Times in 3 Posts
    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
    "Cos it's strange isn't it. You stand in the middle of a library and go 'Aaaaaaaaaaaaaaaaggggggghhhhhhh!'
    and everybody just stares at you. But you do the same in an aeroplane, and everybody joins in."
    -Tommy Cooper

  • #3
    New Coder
    Join Date
    Sep 2005
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by martin_narg
    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?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •