Board Thread:General Coding Help/@comment-26923519-20171027024246/@comment-24757753-20171027191849

Quickly testing, that original code breaks the Recent Changes checkboxes while logged out, as the code cannot find their IDs and so they remain permanently disabled even after changing the namespace option.

If you must use JavaScript for this, perhaps try checking if the element following the checkbox is a label (should generally be the case), and add the  class to that already-existing label.