[22:05:17] I have a user script that needs to first detects whether it's on the right kind of wiki page before activating the main code. it's for wikisource and activates for certain kinds of source documents. currently it decides whether to activate if the page is for a Commons filename that begins with a particular string, but that's not very flexible for a large number of files. what would be a better way? [22:05:55] categories are an option but unfortunately it looks like api.php doesn't let you read the category graph, and the relevant category would be a super-category of the actual commons file categorie [22:06:00] categories* [22:07:29] anyway, ideas would be much appreciated :)