CKTools

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

当前为 2021-07-22 提交的版本,查看 最新版本

此脚本不应直接安装,它是供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.gf.qytechs.cn/scripts/429720/953040/CKTools.js

作者
CKylinMC
版本
0.1
创建于
2021-07-22
更新于
2021-07-22
大小
13.1 KB
许可证
GPLv3 License

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

Included

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

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址