mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-17 05:20:01 -04:00
Minor code changes
This commit is contained in:
parent
552f8ae4e9
commit
450465a01b
1 changed files with 7 additions and 5 deletions
|
@ -32,24 +32,26 @@ const insertText = (lis, str, newText) => {
|
|||
// changes with each time it is loaded.
|
||||
const randomListItem = lis => () => lis[Math.random() * lis.length | 0],
|
||||
|
||||
charset = ["­", "​", "­"],
|
||||
charset = ["­", "​", "­", "<wbr>"],
|
||||
getRandomChar = randomListItem(charRandom),
|
||||
insertCharset = str => insertText(
|
||||
charset,
|
||||
str,
|
||||
randomListItem(charRandom)
|
||||
getRandomChar
|
||||
),
|
||||
|
||||
getRandomSplash = randomListItem(splashRandom),
|
||||
hutaoInsert = str => insertText(
|
||||
"<!--HUTAOWOA-->",
|
||||
str,
|
||||
randomListItem(splashRandom)
|
||||
getRandomSplash
|
||||
),
|
||||
|
||||
cookingText = () => `<span style="display:none" data-fact="${randomListItem(vegetables)()}">${randomListItem(cookingInserts)()}</span>`,
|
||||
getCookingText = () => `<span style="display:none" data-fact="${randomListItem(vegetables)()}">${randomListItem(cookingInserts)()}</span>`,
|
||||
insertCooking = str => insertText(
|
||||
"<!-- IMPORTANT-HUTAOCOOKINGINSERT-DONOTDELETE -->",
|
||||
str,
|
||||
cookingText
|
||||
getCookingText
|
||||
),
|
||||
|
||||
// This one isn't for obfuscation; it's just for dealing with cache issues.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue