MCPcopy Create free account
hub / github.com/WhiteSevs/TamperMonkeyScript / before

Method before

lib/pops/src/utils/PopsDOMUtils.ts:2407–2419  ·  view source on GitHub ↗

* 在元素前面添加兄弟元素或HTML字符串 * @param element 目标元素 * @param content 兄弟元素或HTML字符串 * @example * // 元素a.xx前面添加一个元素 * DOMUtils.before(document.querySelector("a.xx"),document.querySelector("b.xx")) * DOMUtils.before("a.xx","' ") *

(element: HTMLElement | Element | string, content: HTMLElement | string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

addTagItemFunction · 0.45
gotoDeepMenuFunction · 0.45

Calls 2

selectorMethod · 0.45
insertBeforeMethod · 0.45

Tested by

no test coverage detected