proginosko / LeechBlock

LeechBlock is a simple productivity tool designed to block those time-wasting sites that can suck the life out of your working day. All you need to do is specify which sites to block and when to block them.
https://www.proginosko.com/leechblock/
Mozilla Public License 2.0
70 stars 10 forks source link

Allow behavior customization (API) in custom block pages #4

Open CyberShadow opened 8 years ago

CyberShadow commented 8 years ago

Currently, the custom block/delay pages only allow changing the look (skinning), but they do not allow controlling LeechBlock behaviour. It would be nice to have a way to do that.

This would allow customizing LeechBlock to do things like:

Essentially, the main thing that's missing is a JavaScript function accessible from the page's embedded script, which allows proceeding to the blocked destination page. Setting document.location doesn't work because that just triggers LeechBlock again.

proginosko commented 8 years ago

Thanks for this good suggestion. I'll give some thought to how that could be added in a future version.