-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtodo.txt
115 lines (67 loc) · 5 KB
/
todo.txt
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<div class="fieldInfoMain" dojoattachpoint="apFieldInfoMain">3<span class="dpTooltip" data-dp-tooltip="Population increases production. population grows by building farms">0,000 <span class="label"> population</span></span><br><span class="dpTooltip" data-dp-tooltip="Culture increases production and lowers rebellion.">developed<span class="label"> culture</span></span><br><span class="dpTooltip" data-dp-tooltip="Natural resources increase production.">+2<span class="label"> resources</span></span><br></div>
#gameWrapper > div > div.area.areaR > div.view.headerView.conqFieldTools.cap.type_default.fogOfWar0 > div > div.fieldHeaderWrapper > div.fieldInfoMain
$("#gameWrapper > div > div.area.areaR > div.view.headerView.conqFieldTools.cap.type_default.fogOfWar0 > div > div.fieldHeaderWrapper > div.fieldInfoMain").firstChild
var wrapper = $("#gameWrapper > div > div.area.areaR > div.view.headerView.conqFieldTools.cap.type_default.fogOfWar0 > div > div.fieldHeaderWrapper > div.fieldInfoMain")
var test = $('<button>Test</button>').click(function () {
alert('hi');
});
wrapper.append('<button>Test</button>');
CFG_PATH = {
'static': '//conqueror.strategymania.com/1.7.3/',
css: '//conqueror.strategymania.com/1.7.3/css/',
js: '//conqueror.strategymania.com/1.7.3/js/',
audio: '//conqueror.strategymania.com/1.7.3/audio/',
image: '//conqueror.strategymania.com/1.7.3/image/',
map: '1.7.3/map/'
};
CFG_VERSION = '1.7.3';
src="//conqueror.strategymania.com/1.7.3/js/main.js"
<input type="button" value="Click me">
#field_bulgaria
$('#field_bulgaria').click()
#lobbyWrapper > div > div > div.mainContainer > div.area.areaML > div > div.viewContent > div.createGame > div > div.viewContent > div.createGameDialog > div > div.viewContent > div.optionRow.submit > div.start.button
var event = document.createEvent("SVGEvents");
event.initEvent("click",true,true);
var d = document.getElementById("a0xa000033"); // id for one the "g" element.
d.dispatchEvent(event);
http://api.jquery.com/trigger/
tak laduje my jQuery:
javascript:if(!window.jQuery||confirm('Overwrite\x20current\x20version?\x20v'+jQuery.fn.jquery))(function(d,s){s=d.createElement('script');s.src='https://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.js';(d.head||d.documentElement).appendChild(s)})(document);
- tak sprawdzamy:
javascript:if(!window.jQuery||confirm('Overwrite\x20current\x20version?\x20v'+jQuery.fn.jquery))(function(d,s){s=d.createElement('script');s.src='https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.js';(d.head||d.documentElement).appendChild(s)})(document);
- za pierwszym razem po prostu ładuje a za drugim pyta, bo już załadowane.
#gameWrapper > div > div.area.areaR > div.view.headerView.conqFieldTools.cap.type_default.fogOfWar0 > div > div.fieldProdWrapper > div.fieldProps > div.fieldProp.fieldProp2.fieldPropGold > div.fieldPropValue
var goldV = $('#gameWrapper > div > div.area.areaR > div.view.headerView.conqFieldTools.cap.type_default.fogOfWar0 > div > div.fieldProdWrapper > div.fieldProps > div.fieldProp.fieldProp2.fieldPropGold > div.fieldPropValue')
var end = $('#gameWrapper > div > div.area.areaR > div.view.headerView.conqFieldTools.fogOfWar0.cap.type_default > div > div.fieldProdWrapper > div.fieldProdBuy.multi > div.buttonWrapper > div.fieldProdBuyButton.fieldProdBuyButton1');
https://api.jquery.com/mousedown/
http://api.jquery.com/trigger/
https://grokbase.com/t/gg/d3-js/141z17dwee/manually-firing-events-for-an-svg-element
https://stackoverflow.com/questions/49834459/programmatically-trigger-click-event-in-svg-rect-element
https://stackoverflow.com/questions/8650975/javascript-to-create-a-button-with-onclick
https://www.w3schools.com/jsref/met_document_createelement.asp
https://stackoverflow.com/questions/27079598/uncaught-typeerror-failed-to-execute-appendchild-on-node-parameter-1-is-no
https://stackoverflow.com/questions/9624972/command-for-loading-jquery-on-google-chrome-inspector
country.change(function() {
alert( "Handler for .change() called." );
});
div.fieldHeaderWrapper > div.fieldHeader > span');
#gameWrapper > div > div.area.areaR > div.view.headerView.conqFieldTools.fogOfWar0.type_default > div > div.fieldHeaderWrapper > div.fieldHeader
var sidebar = $("#gameWrapper > div > div.area.areaR");
.change(function() {
alert( "Handler for .change() called." );
});
!Wrócić do ProvinceSpy zeby było wiadomo co neutralne budują.
- gdzie to wpisywać
- można w 'pop_roma'
- czy tooltip podziała?
- ostrzegać gdy jest pewne że 3 buduje development
- historie każdej tury
Toolik do rysowania kolorów kropek, zeby wiedzieć gdzie dochodzą czyje potęgi.
Mooker powieniał że ja zawsze agro nawet gdy powiniem na niego jechać.
gdy 2 oddalenia do stolicy to nie czekać 7 tur.
skupić się na castle (trzeba szybko zrobić castle).
****
Tooly który będzie trzymał kto kiedy wygrał.
***
2dev. - if 2 dev juz było po
1dev, 2dev od razu podbijać