You are not logged in.

Francolino

OGame Origin Admin

  • "Francolino" is male
  • "Francolino" started this thread

Posts: 3,551

Community:

Location: Switzerland

  • Send private message

1

Friday, May 18th 2012, 5:44pm

Main browser and extension issues/problems

Dear tool devs,

Please report here known issues / problems with the browser and extensions like Greasemonky / Scriptish / Tampermonkey.



Firefox Greasemonkey:

- GM 0.9.19 - Problems with AJAX requests -> Update to 0.9.20



Chrome Tampermonky:

- Problems (better: own handling) with handling several windows objects.
-- window.parent.xxx -> unsafeTop.xxx
-- top / self / .... -> window.top / window.self / ....

- Other browsers CAN'T handle those objects, FF and Opera stops when you try to check "unsafeTop" etc

2

Saturday, May 19th 2012, 6:13pm

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
	if (document.location.href.indexOf("page=overview") != -1) {
		function foo() {
			alert("1");
		}
	}

	if (document.location.href.indexOf("page=galaxy") != -1) {
		function foo() {
			alert("2");
		}
	}

	foo();

on the overview page this will alert "1" on Firefox, and "2" on Chrome and Opera

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
	if (document.location.href.indexOf("page=overview") != -1) {
		var foo = function() {
			alert("1");
		}
	}

	if (document.location.href.indexOf("page=galaxy") != -1) {
		var foo = function() {
			alert("2");
		}
	}

	foo();

this will alert "1" on the overview page and "2" on the galaxy view for the 3 browsers (as expected)

benneb

Origin Admin & OGame Tech

Posts: 659

Community:

  • Send private message

3

Tuesday, August 28th 2012, 5:16pm

the greasemonkey v1 is now online,

https://addons.mozilla.org/fr/firefox/addon/greasemonkey/

for this version, if you use GM_getValue or GM_setValue in your code, now you must add this line in your script

Source code

1
2
// @grant       GM_getValue
// @grant       GM_setValue


http://wiki.greasespot.net/@grant