CKTools

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

As of 2021-07-22. See the latest version.

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyfork.org/scripts/429720/953040/CKTools.js

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Author
CKylinMC
Version
0.1
Created
2021-07-22
Updated
2021-07-22
Size
13.1 KB
License
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.