<?xml version="1.0" encoding="UTF-8"?>
<post>
  <body>Can you give an example page that the script should run on? I suspect the problem may be with the galleries being loaded dynamically with Ajax (which is the case with Facebook galleries these days, and I have some experience of scripting with these), so the workaround that I tend to use is to put the entire script into a function, and then use the following line..&lt;pre&gt;document.addEventListener('DOMNodeInserted', function() { window.setTimeout(scriptFunction, 5000);}, true);
&lt;/pre&gt;Where the time delay allows the gallery to load before the script is run.</body>
  <body-html>&lt;p&gt;Can you give an example page that the script should run on? I suspect the problem may be with the galleries being loaded dynamically with Ajax (which is the case with Facebook galleries these days, and I have some experience of scripting with these), so the workaround that I tend to use is to put the entire script into a function, and then use the following line..&lt;pre&gt;document.addEventListener('DOMNodeInserted', function() { window.setTimeout(scriptFunction, 5000);}, true);
&lt;/pre&gt;Where the time delay allows the gallery to load before the script is run.&lt;/p&gt;</body-html>
  <created-at type="datetime">2008-11-14T10:04:11Z</created-at>
  <forumable-id type="integer">1</forumable-id>
  <forumable-type>Forum</forumable-type>
  <id type="integer">17597</id>
  <topic-id type="integer">9634</topic-id>
  <updated-at type="datetime">2008-11-14T10:05:58Z</updated-at>
  <user-agent nil="true"></user-agent>
  <user-id type="integer">22480</user-id>
</post>
