honestbleeps/Reddit-Enhancement-Suite — pull request #1858 by erikdesjardins (2014-12-12 06:50:08+00:00)
Title: Add RESUtils.isPageType(['x', 'y']) and 'modqueue' pageType

Depends/based on #1856
Intended to simplify this repetition: `RESUtils.pageType() === 'x' || RESUtils.pageType() === 'y'...`. There are a few other fixes/refactoring thrown in as well.

Unfortunately, adding the modqueue page type requires replacing pretty much every single `'linklist'` test with `'linklist', 'modqueue'`. However, it does allow us to standardize a few `include:` regexes, and it makes sense (at least somewhat) because modqueue is more like a combination of `comments` and `linklist`.

Although this is a pretty drastic change so it may not be worth doing at all.