I'd like to develop an Internet Explorer extension that changes the content of a specific webpage, like content scripts in Google Chrome. (eg. when I go to the website Google and I search for "car" I'd like to have a div created on the page with the word "car" inside).

I've been looking on SO but haven't found clear evidences if this kind of thing is possible.

What I'm specifically looking for is a clear tutorial or some example of how to do this.

I'm looking at your answer (which is great) but I'm worried with the compatibility issues and I don't even know how to package the extension (that's why I'm looking for a really newbie tutorial :-) [step by step like in Firefox or Chrome (I mean they're doing it why not IE staff])
–
BrunoMay 26 '11 at 14:57

@Jonathon Wisnoski Thanks for your answer; GreaseMonkey does look great but I'd prefer not to use it because of the installation it requires.
–
BrunoMay 24 '11 at 7:36

The installation? How else are you intending to install an IE extension? The source code is on the page - you can probably adapt it to whatever you want, or at least learn from it. Were you hoping for a JavaScript object you can silently / maliciously load into a page???
–
RupMay 26 '11 at 15:04

@Rup No, I only want to create an extension that I can share (like in Google Chrome or Firefox).
–
BrunoMay 26 '11 at 15:22

2

But the user would still need to install that extension, but of course you would need to install two things GM for IE and then your custom script. Personally I think it is the best possibly solution, but an actual custom extension would work as well as far as I know. One thing to think about is that if you ever want to port your code to another browser the GM for IE would be by far the easiest to do so with, as it is just normal JS with a few extra custom functions (which at least I can guaranty you will be basically present in GM for Firefox).
–
Jonathon WisnoskiMay 26 '11 at 22:50

1

Also so few IE user use extensions that it seems that most people have just given up on them. And that is why you cannot easily find tutorials on how to do it.
–
Jonathon WisnoskiMay 27 '11 at 12:53

Thanks for your answer but the documentation looks quite outdated and I did not see a mention of code injection.
–
BrunoMay 24 '11 at 13:47

2

Hi Bruno, you can take a look at what Jonathon stated in the GreaseMonkey IE Extension. The source code is available, and it extends IE and allows manipulation within the DOM if you need an example how IE extensions work
–
Mohamed MansourMay 24 '11 at 22:00

Trixie is to Internet Explorer as Greasemonkey is to Firefox. It lets you remix the Web via scripts. You may do this to either make it more readable, fix bugs or to even add little features to make the site more usable to you. Trixie by itself does none of this. It is just a plugin for Internet Explorer that enables executing chunks of JavaScript code and thus lets you use the Web the way you want to use it.