As of 2024-04-17, a quick search for .button() turns up 29 results in the PageTriage extension:
https://codesearch.wmcloud.org/things/?q=button%5C%28&files=&excludeFiles=&repos=Extension%3APageTriage
These all show up in the curation toolbar, which is undergoing an incremental migration to Vue.js (which would also allow for codex).
Since the migration may take a while to be completed, we should start with simple method replacements where possible for the impacted module:
[[ https://gerrit.wikimedia.org/g/mediawiki/extensions/PageTriage/+/4b87c63459a86dcfc1d200ecaa0d6dacbb891188/modules/ext.pageTriage.toolbar/mark.js | modules/ext.pageTriage.toolbar/mark.js ]]
for example, to disable/enable buttons in pure JavaScript, instead of :
```
$( '#idval' ).button( 'enable' );
```
do:
```
document.getElementById( 'idval' ).removeAttribute( 'disabled' );
```
instead of:
```
$( '#idval' ).button( 'disable' );
```
do:
```
document.getElementById( 'idval' ).setAttribute( 'disabled', 'disabled' );
```