User blog comment:Grunny/Make yourself a Wikia-MacGyver: Adding custom scripts/@comment-2026043-20120310144242

Thanks for making these tools known :) One thing I'd like to ask. I have a question for the AJAX RC script. I'd like to add, say Special:WikiActivity, in addition to the Recent Changes. But I don't want to import the script to my page, I actually want to have it locally. For this, I tried adding a second element to the default array created by the script, like this var ajaxPages = new Array("Special:RecentChanges","Special:WikiActivity"); but it wouldn't work. I also tried this var ajaxPages = ["Special:RecentChanges","Special:WikiActivity"]; but it won't work either.

If it helps, the above changes were made to my global.js page. The wiki for which I am trying for this to work already has the unmodified version of the script, locally. Any ideas? Thanks.