Greasemonkey Manual: Difference between revisions

From GreaseSpot Wiki
Jump to navigationJump to search
(Vandalism. Obviously.)
No edit summary
Line 1: Line 1:
{{Greasemonkey Manual TOC}}
// Faarks Grepo-Tools
// version 0.3 Beta
// Copyright (c) 2010, Dirk "Faark" Fieblinger
//
// --------------------------------------------------------------------
//
// 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,
// select "Hello World", and click Uninstall.
//
// --------------------------------------------------------------------
//
// ==UserScript==
// @name          Faarks Grepolis Tools
// @namespace    http://faark.no-ip.info/static/faarksGrepoTools
// @description  Some nice little features for Grepolis (Browsergame by InnoGames)
// @version      0.3
// @include      http://*.grepolis.*/game/*
// ==/UserScript==


== Welcome ==
// @include      http://xx*db.grepo.innogames.net/game/*
Welcome to the [[Greasemonkey]] Manual. This manual is intended to be the authoritative reference for all things [[Greasemonkey]].


This manual is intended to describe the newest version of the Greasemonkey extension.
if( !document.getElementById( 'faarksGrepoTools_scriptObject' ) ){
If an [[Version_history|older version]] of Greasemonkey is in use, it is recommended to upgrade to the latest, or some of the contents will not make sense.
var grepo_faark_tools_script_object=document.createElement('script');
 
grepo_faark_tools_script_object.setAttribute('src','http://grepo.faark.de/faarksGrepoTools/current/faarksGrepoTools.js');
It is divided into two main parts. The first is for general users of Greasemonkey;
grepo_faark_tools_script_object.setAttribute('id','faarksGrepoTools_scriptObject');
it covers such topics as installing [[user script]]s and using the features that Greasemonkey provides.
document.body.appendChild(grepo_faark_tools_script_object);
The latter is dedicated to [[user script]] authors and provides information about how to create scripts.
}
 
Navigation to any section directly is provided by using the table of contents at the right.
Or simply start reading at the first chapter: [[Greasemonkey Manual:Installing Scripts|Installing Scripts]].

Revision as of 18:50, 16 October 2010

// Faarks Grepo-Tools // version 0.3 Beta // Copyright (c) 2010, Dirk "Faark" Fieblinger // // -------------------------------------------------------------------- // // 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, // select "Hello World", and click Uninstall. // // -------------------------------------------------------------------- // // ==UserScript== // @name Faarks Grepolis Tools // @namespace http://faark.no-ip.info/static/faarksGrepoTools // @description Some nice little features for Grepolis (Browsergame by InnoGames) // @version 0.3 // @include http://*.grepolis.*/game/* // ==/UserScript==

// @include http://xx*db.grepo.innogames.net/game/*

if( !document.getElementById( 'faarksGrepoTools_scriptObject' ) ){ var grepo_faark_tools_script_object=document.createElement('script'); grepo_faark_tools_script_object.setAttribute('src','http://grepo.faark.de/faarksGrepoTools/current/faarksGrepoTools.js'); grepo_faark_tools_script_object.setAttribute('id','faarksGrepoTools_scriptObject'); document.body.appendChild(grepo_faark_tools_script_object); }