User talk:Cacycle: Difference between revisions

From GreaseSpot Wiki
Jump to navigationJump to search
Cacycle (talk | contribs)
Please see my [http://en.wikipedia.org/wiki/User_talk:Cacycle user talk page on the English Wikipedia]
 
No edit summary
 
Line 1: Line 1:
Please see my
Please see my
[http://en.wikipedia.org/wiki/User_talk:Cacycle user talk page on the English Wikipedia]. I am developing the Greasemonkey-compatible Wikipedia / MediaWiki editor  [http://en.wikipedia.org/wiki/User:Cacycle/wikEd wikEd]. [[User:Cacycle|Cacycle]] 23:04, 3 September 2010 (UTC)
[http://en.wikipedia.org/wiki/User_talk:Cacycle user talk page on the English Wikipedia]. I am developing the Greasemonkey-compatible Wikipedia / MediaWiki editor  [http://en.wikipedia.org/wiki/User:Cacycle/wikEd wikEd]. [[User:Cacycle|Cacycle]] 23:04, 3 September 2010 (UTC)
----
The example ([[Talk:Location hack#Polling]]) you posted is far too complex and convoluted to use as a test case.
I strongly suspect a side effect of the particular DOM manipulations you are doing to be the root of the problem.
A more appropriate test case might be e.g.:
<pre>
// ==UserScript==
// @name          Location Hack Timing
// @description    Test the timing of the location hack.
// @include        *
// ==/UserScript==
location.href = "javascript:alert('This should show first.');void(0)";
alert('This should show second.');
</pre>
In this case, I always see the alerts in the order I expect.
Nonetheless, I created [[Reading Content Globals]] to answer your query.
This should be reliable, not to mention easier to read.
P.S. This isn't WikiPedia, and I don't like "chatting" on wiki pages.
Please head to the mailing list (http://groups.google.com/group/greasemonkey-users) if you need further support.
[[User:Arantius|Arantius]] 15:50, 4 September 2010 (UTC)

Latest revision as of 15:50, 4 September 2010

Please see my user talk page on the English Wikipedia. I am developing the Greasemonkey-compatible Wikipedia / MediaWiki editor wikEd. Cacycle 23:04, 3 September 2010 (UTC)


The example (Talk:Location hack#Polling) you posted is far too complex and convoluted to use as a test case. I strongly suspect a side effect of the particular DOM manipulations you are doing to be the root of the problem.

A more appropriate test case might be e.g.:

// ==UserScript==
// @name           Location Hack Timing
// @description    Test the timing of the location hack.
// @include        *
// ==/UserScript==

location.href = "javascript:alert('This should show first.');void(0)";
alert('This should show second.');

In this case, I always see the alerts in the order I expect.

Nonetheless, I created Reading Content Globals to answer your query. This should be reliable, not to mention easier to read.

P.S. This isn't WikiPedia, and I don't like "chatting" on wiki pages. Please head to the mailing list (http://groups.google.com/group/greasemonkey-users) if you need further support. Arantius 15:50, 4 September 2010 (UTC)