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>
MethodDescription
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.

Was this article helpful to you?