Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

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

Open
CyberShadow opened this issue Feb 23, 2016 · 1 comment
Open

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

CyberShadow opened this issue Feb 23, 2016 · 1 comment

Comments

@CyberShadow
Copy link

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:

  • customizing block behavior (timeout duration) beyond the limits of LeechBlock's configuration dialog
  • filtering the blocked URLs with a finer method than substring search
  • asking me to solve a math equation to proceed to the blocked page

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
Copy link
Owner

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants