Bonjour,

J'ai finalement réussi ce que je voulais ! Il marche très bien dans mon firebug ... Sauf que le script ne marche pas avec userscript ... ou est l'erreur ?

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// ==UserScript==
// @name          Grepolis Halloween 2011
// @author        JBGO
// @licence       Copyright JBGO, Tous droits réserves 2011+
// @version       1
// @include       http://fr1.grepolis.*/game*
// @include       http://fr2.grepolis.*/game/*
// @include       http://fr3.grepolis.*/game/*
// @include       http://fr4.grepolis.*/game/*
// @include       http://fr5.grepolis.*/game/*
// @include       http://fr6.grepolis.*/game/*
// @include       http://fr7.grepolis.*/game/*
// @include       http://fr8.grepolis.*/game/*
// @include       http://fr9.grepolis.*/game/*
// @include       http://fr10.grepolis.*/game/*
// @include       http://fr11.grepolis.*/game/*
// @include       http://fr12.grepolis.*/game/*
// @include       http://fr13.grepolis.*/game/*
// @include       http://fr14.grepolis.*/game/*
// @include       http://fr15.grepolis.*/game/*
// @include       http://fr16.grepolis.*/game/*
// @include       http://fr17.grepolis.*/game/*
// @licence     2011+
// ==/UserScript==
 
function init () {
$('<div id="present_pumpkin_110_495" class="tile" style="position: absolute; left: 14200px; top: 63616px;"></div>').appendTo('#map_towns');$("#present_pumpkin_110_495").css("background-image","url(http://cdn.grepolis.com/images/game/map/presents/pumpkin1.gif)");
$('<div id="present_pumpkin_94_487" class="tile" style="position: absolute; left: 12160px; top: 62400px;"></div>').appendTo('#map_towns');$("#present_pumpkin_94_487").css("background-image","url(http://cdn.grepolis.com/images/game/map/presents/pumpkin2.gif)");
$('<area id="clic_present_pumpkin_94_487" shape="circle" coords=200,220,32"></ >').appendTo('#map_marker');
$('<div id="pumpkin_farm" style="z-index:2;position:absolute;width:81px;height:41px;top:0px;right:208px;"></div>').appendTo('#town_background');
$("#pumpkin_farm").css("background-image","url(http://cdn.grepolis.com/images/game/visual2/crop_circle_pumpkin.png)");
 
};
 
setTimeout( init, 250 );
Merci !!