jdan / tota11y

an accessibility (a11y) visualization toolkit
http://khan.github.io/tota11y/
MIT License
5.05k stars 278 forks source link

tota11y API (custom plugins) #20

Open jdan opened 9 years ago

jdan commented 9 years ago

I'd like to add custom plugin support to tota11y, as well as the ability to toggle plugins.

Custom plugins:

tota11y.addPlugin('my-plugin', {
    run: function() {
        // ...
    },
    cleanup: function() {
        // ...
    }
});

Toggling plugins:

tota11y.hidePlugins(['contrast', 'link-text']);

Thoughts?

rileyjshaw commented 9 years ago

:+1: