Needing help with CustomWebView and TaifunTools

How do i make the screen stay on only in particular pages? This doesn't seem to work.

I don't think it has anything to do CustomWebView.

Are you able to keep Screen on, in general?

If i only put keepscreenon i can with no issue.If i use this configuration that also uses dontkeepscreenon it doesn't seem to work.

Apparently this if-query is never false: