CKTools

A library by CKylinMC combined all usually-used script segments.

ของเมื่อวันที่ 06-09-2021 ดู เวอร์ชันล่าสุด

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

ผู้เขียน
CKylinMC
เวอร์ชัน
0.3
สร้างเมื่อ
22-07-2021
อัปเดตเมื่อ
06-09-2021
Size
13.2 กิโลไบต์
สัญญาอนุญาต
GPLv3 License

A library by CKylinMC combined all usually-used script segments.

Included

  • get/getAll method - alias of querySelector/All
  • makeDom async method - make a node and do something then return the node just created.
  • getCookies/getUrlParam method - simplified script for using cookies and url params.
  • wait async method - base waiting method, support async.
  • waitForDom async method - wait until specified dom been found.
  • waitForAttribute async method - wait until specified attribute been found.
  • waitForPageVisible async method - wait until page been displayed.
  • addStyle/clearStyles method - an easy way to manage injected styles.
  • EventEmitter class - a simple emitter polyfill emulating nodejs.
  • HoldClick class - a simple tool handling mouse-long-tap for desktop users.
  • dragger.* object - a group of useful tools handling hold-and-drag for desktop users.
  • modal.* object - a ready-to-go simple single-instance modal window.
  • bili.* object - a group of useful tools for bilibili pages.

There is no detailed documents for this library, for more information like usages please directly goto source code.