Board Thread:General Coding Help/@comment-24255377-20151102150037

I tried both ways to do it: SpoilerAlert = { categories: "Books", "Heroes", "Villains", "Locations", "Items", "Teams" } importArticles({   type: "script",    articles: [        "w:c:dev:SpoilerAlert/code.js"    ] }); SpoilerAlert = { isSpoiler: function { return -1 !== wgCategories.indexOf('Books'); return -1 !== wgCategories.indexOf('Heroes'); return -1 !== wgCategories.indexOf('Villains'); return -1 !== wgCategories.indexOf('Locations'); return -1 !== wgCategories.indexOf('Items'); return -1 !== wgCategories.indexOf('Teams'); } }; importScriptPage('SpoilerAlert/code.js', 'dev'); None of them are working. What's wrong? 