added safe jokes

This commit is contained in:
Justin 2023-07-17 14:48:46 +08:00 committed by GitHub
parent bcdb7a52d5
commit c455e6cd98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;