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 {