In this article, we look at Readabler script methods. Once the class is initialized, you will be able to use the following methods:
<script>
window.addEventListener( 'DOMContentLoaded', () => {
const readabler = new Readabler();
readabler.openPopup();
} );
</script>| Method | Description |
| openPopup() | Opens the accessibility window |
| closePopup() | Close the accessibility window |
| addButton() | Add the Readabler button in configured position |
| removeButton() | Delete Readabler button |
| getOptions() | Get object with current options |
| setOptions(options) | Updates options after class initialization |
| addStyle(style) | Updates style settings after initialization |
Style settings or options must be provided in the correct format.

