Mirror of UserUtils' source code https://github.com/Sv443-Network/UserUtils

Sven ee8f668380 fix: change version před 1 rokem
.changeset e54ccbcf24 feat: initial commit před 1 rokem
.github 80ab8c7b7c Create FUNDING.yml před 1 rokem
lib 7aadec8e05 feat: initial features před 1 rokem
.eslintrc.cjs e54ccbcf24 feat: initial commit před 1 rokem
.gitignore e54ccbcf24 feat: initial commit před 1 rokem
CHANGELOG.bak.md 7aadec8e05 feat: initial features před 1 rokem
LICENSE.txt e54ccbcf24 feat: initial commit před 1 rokem
README.md e54ccbcf24 feat: initial commit před 1 rokem
package-lock.json ee8f668380 fix: change version před 1 rokem
package.json ee8f668380 fix: change version před 1 rokem
tsconfig.json e54ccbcf24 feat: initial commit před 1 rokem

README.md

UserUtils

Various utilities for userscripts


Table of Contents:



Installation:

  • If you are using a bundler like webpack, you can install this package using npm:

    npm i @sv443-network/userutils
    

    Then, import it in your script as usual:

    import * as userUtils from "@sv443-network/userutils";
    // or
    import { addGlobalStyle } from "@sv443-network/userutils";
    

    Shameless plug: I also have a webpack-based template for userscripts in TypeScript that you can use to get started quickly.


  • If you are not using a bundler, you can include the latest release from GreasyFork by adding this directive to the userscript header:

    // @require https://greasyfork.org/scripts/TODO
    


If you like using this library, please consider supporting development



Features:

onSelector()

autoPlural()

clamp()

pauseFor()

debounce()

getUnsafeWindow()

insertAfter()

addParent()

addGlobalStyle()

preloadImages()

fetchAdvanced()

openInNewTab()

interceptEvent()

interceptWindowEvent()



License:

This library is licensed under the MIT License.
See the license file for details.



Made with ❤️ by [Sv443](https://github.com/Sv443) If you like this library, please consider [supporting development](https://github.com/sponsors/Sv443)