[ 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