Hello World Example

This example shows an alert window after a web page loaded, the message in the alert window is a famous "Hellow World!". Note that the program you saved should be ended with '.ieuser.js'. It is intended to avoid false operation on GreaseMonkey user script, which ended with '.user.js'.

Example: helloworld.ieuser.js

// Hello World!
// ----------------------------------------------------
//
// My first IE Script
//
// ----------------------------------------------------
//
// ==UserScript==
// @name          Hello World
// @namespace     http://xxx.com/
// @description   An famous example shows 'Hello World!'
// @include       *
// @exclude       http://*.iescripts.org/*
// @exclude       http://iescripts.org/*
// ==/UserScript==

alert('Hello World!');

This simple example has the standard format header, and a simple body alert('Hello World!');.

Now save the script in the subdirectory userscripts of your IEPro installation directory. Usually the directory is C:\Program Files\IEPro\userscripts. Restart Internet Explorer, and customize your IEPro preferences to use this script, then you can see the script in action by visit any web page(except iescripts.org, ;-)

helloworld.ieuser.js