精简一下

This commit is contained in:
kifuan
2023-05-14 12:36:49 +08:00
Unverified
parent 759e63b643
commit 3e1fdf52d4

View File

@@ -2,7 +2,6 @@
.flink .flink
- let pageContent = page.content - let pageContent = page.content
if page.flink_url if page.flink_url
- let pageRandom = page.random
script. script.
(()=>{ (()=>{
const replaceSymbol = (str) => { const replaceSymbol = (str) => {
@@ -20,7 +19,7 @@
let listResult = "" let listResult = ""
const lists = str[i].link_list const lists = str[i].link_list
if (!{pageRandom}) { if (!{page.random}) {
lists.sort(() => Math.random() - 0.5) lists.sort(() => Math.random() - 0.5)
} }
for(let j = 0; j < lists.length; j++){ for(let j = 0; j < lists.length; j++){