Board Thread:Script Suggestions/@comment-5645428-20160225053151/@comment-24473195-20160319202504

Hackey5 wrote:

Operation has been pretty good so far. However, I'm encountering issues trying to sweep by namespace while deleting file links. I'm not sure if the process halts due to a glitch or it just takes a very long time. Either way, the process seems to go a lot slower.

I have two suggestions. The first is to include some sort of progress bar to be able to tell if in fact the process has halted or not. The second is to use a custom filter for filtering by namespace, like the one used on Special:RecentChanges.

.WikiaDropdown.MultiSelect .dropdown

I have the intention of sweeping links that are outside of the (main) namespace, so this would be very convenient. There was a bug when checking galleries that made it fail in some pages that might have been making it was slow, I''ve fixed this.

I  added both suggestions. Note that the progress bar won't work on older browsers e.g. IE 10. It is not as fancy  as wikia's  (  prefer a simple selection)  one but you can select some or all items using ctrl + a or shift + a or whatever the OS supports.

The code for the filters now supports multiple namespaces, and finally it also supports other namespaces for files. So if for example, someone is cleaning up "File:Abc.png" it will also try to find  "Image:Abc.png" or "Ficheiro:Abc.png" (in appropriate languages) and will remove whichever ones it finds.

Just a note though, for normal pages and files it is case sensitive although for simplicity sake I ignore this for galleries. So "File:ABC.png" is not equal to "File:abc.PNG". This is a wiki "feature" that makes it possible to upload those two files.