Basic Functions (For userscripts)

Useful functions for myself

As of 2024-03-24. See the latest version.

These are versions of this script where the code was updated. Show all versions.

  • v0.7.2 2023-07-28

    fixed an error description mistake

  • v0.7.1 2023-07-19
    • detectDom now uses Set instead of Array to prevent duplicate added nodes
  • v0.7 2023-07-17
    • small bug fixes
    • addStyle now recieves parentElement, css, id as its arguments, and:
      • for shortcut: css, css, id, parentElement, css, id
      • removes old elements with same id in document when using this function with id provided
  • v0.6 2023-07-17

    Added detectDom, which provides ability to monitor document changes

  • v0.5 2023-03-31

    $$CrE: Create new element with pre-configs

  • v0.4 2023-02-10

    The third argument of DoLog now is changed from [Boolean]trace to [String]logger

  • v0.3.2 2023-01-30

    addStyle now returns the

  • v0.0.1.20230130165706 2023-01-30

    code improvements

  • v0.3 2023-01-30

    addStyle arguments support: css | parentElement, css | parentElement, css, attributes

  • v0.2 2022-12-06

    escJsStr支持转义\r,\n和\t

  • v0.1 2022-12-05

Show all script versions