Internet Explorer
![]() ![]() |
DOMNodeInserted event isn't supported by IE (http://en.wikipedia.org/wiki/DOM_events) I use setInterval to check in regular intervals and see if the node was inserted (http://userscripts.org/scripts/review/50678) |
![]() ![]() |
Even if I do (function ()
{
// The following "if" is not really necessary but with it this script will work for Opera too
if (document.location.href.indexOf ('/game/index.php?page=statistics') == -1)
return;
function showStatDiffs ()
{
if (document.getElementById ("send") == null)
return;
var allStats = document.evaluate ('//*[@class="overmark" or @class="undermark"]', document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
for (var i = 0; i < allStats.snapshotLength; i++)
allStats.snapshotItem (i).firstChild.nodeValue = allStats.snapshotItem (i).getAttribute ("title");
clearInterval (intervalName);
}
var intervalName = setInterval (showStatDiffs, 1000);
}
)();
it still doesn't work in IE+IE7Pro. :( Does IE support XPath at all? |
![]() ![]() |
IE doesn't support XPath
I see that you clear the timer using clearInterval
|
![]() ![]() |
Fixed now. :) |


