as a sibling next to an element
const beforeElement = document.querySelector("#before");
const afterElement = document.createElement("div");
afterElement.innerText = "After";
insertAfter(beforeElement, afterElement);
```
### addParent()
Usage:
```ts
addParent(element: Element, newParent: Element): Element
```
Adds a parent element around the passed `element` and returns the new parent.
Previously registered event listeners are kept intact.
⚠️ This function needs to be run after the DOM has loaded (when using `@run-at document-end` or after `DOMContentLoaded` has fired).
Example - click to view
```ts
import { addParent } from "@sv443-network/userutils";
// add an around an element
const element = document.querySelector("#element");
const newParent = document.createElement("a");
newParent.href = "https://example.org/";
addParent(element, newParent);
```
### addGlobalStyle()
Usage:
```ts
addGlobalStyle(css: string): HTMLStyleElement
```
Adds a global style to the page in form of a `