From bda8d78286ce0b780153fe9c6b6dd12830db9cbe Mon Sep 17 00:00:00 2001 From: johnSickels <46609057+johnsickels@users.noreply.github.com> Date: Sat, 8 May 2021 10:06:51 -0400 Subject: [PATCH] support in class activity questions --- script_foreground.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script_foreground.js b/script_foreground.js index 0d4dea4..29d55d4 100644 --- a/script_foreground.js +++ b/script_foreground.js @@ -198,7 +198,8 @@ function appendTool(html){ function newQuestion(){ console.log('searching for new question...') - let search = document.body.innerHTML.search('AVAILABLE QUESTIONS'); + const match = /(AVAILABLE QUESTIONS|IN CLASS ACTIVITY QUESTIONS)/ + const search = document.body.innerHTML.search(match); if(search!==-1){ return true; } else {