A helper for `document.createElement()` that can be loaded into a script with `require`.
이 스크립트는 직접 설치하는 용도가 아닙니다. 다른 스크립트에서 메타 지시문 // @require https://update.greasyfork.org/scripts/559372/1716611/create-element-helper.js을(를) 사용하여 포함하는 라이브러리입니다.
Load it in the script header.
// @require https://update.greasyfork.org/scripts/559372/create-element-helper.js
tag() calls createElement() and returns a helper.
document.createElement('input')
// ↓
tag('input')
Set attributes by method chaining via helpers.
const input = document.createElement('input')
input.setAttribute('id', 'search')
input.classList.add('search')
// ↓
tag('input').id('search').cssClass('search')