Oh I think I see what's happening.
I have 18+ enabled
and in the log it says it's returning a blank frame because NSFW content was detected.
So currently you have it setup so you can enable NSFW but then the script you make detects it and returns a blank screen.
You may want to update the way the 18+ toolbar button works, because that is very broken logic. XD