libs

JavaScript 库函数,以便调用

ของเมื่อวันที่ 08-04-2024 ดู เวอร์ชันล่าสุด

สคริปต์นี้ไม่ควรถูกติดตั้งโดยตรง มันเป็นคลังสำหรับสคริปต์อื่น ๆ เพื่อบรรจุด้วยคำสั่งเมทา // @require https://update.greasyfork.ip-ddns.com/scripts/491971/1356547/libs.js

ผู้เขียน
Essence
เวอร์ชัน
0.1
สร้างเมื่อ
08-04-2024
อัปเดตเมื่อ
08-04-2024
Size
1.9 กิโลไบต์
สัญญาอนุญาต
ไม่มี

库函数

使用

sleep

等待毫秒数

await sleep(3000)

waitElem

  const click = (elem) => {
    console.log(TAG, "人机验证的选择框", elem)
    elem.click()
  }

  waitElem("div#challenge-stage span.mark", click)

readLocalStorageValues

const history = readLocalStorageValues(/^Hm_lvt/)

restoreLocalStorageValues

const json = `{"a": 123, "b": "test"}`

restoreLocalStorageValues(json)

containerToRow

const root = document.querySelector("body")

containerToRow(root)