kittsville / GifSound-2

Abandoned remake of gifsound.com with modular media plugins and no server-side code
https://sci1.uk/GifSound-2/
GNU General Public License v2.0
4 stars 1 forks source link

Allow media plugins registration/de-registration #8

Open kittsville opened 8 years ago

kittsville commented 8 years ago

To allow people to easily register their own media plugins or de-register media plugins four methods should be added to gifSound along with an event that triggers when people can register their media plugins.

Something along the lines of: gifSound.registerGifPlugin() To add a new gif plugin, possibly at an optional offset to make it the priority plugin

gifSound.registerSoundPlugin() To add a new sound plugin, possibly at an optional offset to make it the priority plugin

gifSound.deregisterGifPlugin() To remove an existing gif plugin (if it exists) without deleting the object. Returning true/false on success failure?

gifSound.deregisterSoundPlugin() To remove an existing gif plugin (if it exists) without deleting the object. Returning true/false on success failure?

This'd make adding custom playback plugins a simple matter of making a JavaScript object and registering it. A GreaseMonkey script (that's still a thing right?) could run it on all gifsound2.com pages.