[Greasemonkey] Error on running user script
Raybiez
neil.big.craig at gmail.com
Thu Sep 7 07:33:49 EDT 2006
I've tried the method you suggested Johan. I did the following:
// Kalahari.net user script
// version 0.1 BETA!
// 2006-08-24
// Copyright (c) 2006, Neil Craig (neil.big.craig[at]gmail.com
// Released under the GPL license
// http://www.gnu.org/copyleft/gpl.html
//
// --------------------------------------------------------------------
//
// This is a Greasemonkey user script.
//
// To install, you need Greasemonkey: http://greasemonkey.mozdev.org/
// Then restart Firefox and revisit this script.
// Under Tools, there will be a new menu item to "Install User Script".
// Accept the default configuration and install.
//
// To uninstall, go to Tools/Manage User Scripts,
//
// --------------------------------------------------------------------
//
// ==UserScript==
// @name Kalahari.net SiteTools
// @description This script will provide the user with many tools to the
Kalahari.net website.
// @include http://*.kalahari.net/*
// @include http://kalahari.net/*
// ==/UserScript==
(function () {
var Basket = {
initialize: function() {
alert("Initialise");
}
}
window.addEventListener("load", Basket.initialize, false);
})();
But it seems that the class definition is messing it up, even the sample
above gives the same error....
--
View this message in context: http://www.nabble.com/Error-on-running-user-script-tf2164128.html#a6190423
Sent from the MozDev - greasemonkey forum at Nabble.com.
More information about the Greasemonkey
mailing list