From c455e6cd9815a8db286342a2c3b8fb6fef741020 Mon Sep 17 00:00:00 2001 From: Justin Date: Mon, 17 Jul 2023 14:48:46 +0800 Subject: [PATCH] added safe jokes --- static/app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/app.js b/static/app.js index 4a8d335..0809fa6 100755 --- a/static/app.js +++ b/static/app.js @@ -1721,6 +1721,7 @@ function getJokesSettings(page) { let title = page.querySelectorAll(".title-select")[0].checked; let categories = getListItems(page.querySelectorAll(".symbol-list")[0]); let amount = page.querySelectorAll(".jokes-amount-select")[0].value; + let safe = page.querySelectorAll(".title-select")[1].checked; const jokesdivElement = page.querySelector('.blacklist-checkboxes'); const allcheckboxes = jokesdivElement.querySelectorAll('input'); const blacklist = []; @@ -1734,6 +1735,7 @@ function getJokesSettings(page) { categories: categories, blacklist: blacklist, amount: amount, + safe: safe, }; console.log(settings); return settings;