[ Greasemonkey ] Hello World

1. named the file ends with .user.js

The file content begin with some configuration, see example below.

xxxx.user.js

// ==UserScript==
// @name          Auto Login PAM
// @namespace     http://dsin.blogspot.com
// @description   auto login to PAM page
// @include       http://192.168.17.30:9090/pam/
// @include       http://192.168.17.30:9090/pam/?reurl=*
// ==/UserScript==
alert('Hello')

NOTE : can add many include ( ref ), and can use wildcard ( i.e. * )

2. drag-and-drop to firefox page. Firefox will pop-up to ask for installation

ref : greasespot

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s