UNPKG

483 BJavaScriptView Raw
1"use strict"
2Object.defineProperty(exports,"__esModule",{value:!0})
3exports.fn=exports.params=exports.description=exports.active=exports.type=exports.name=void 0
4exports.name="removeAttributesBySelector"
5exports.type="perItem"
6exports.active=!1
7exports.description="removes attributes of elements that match a css selector"
8exports.params={}
9exports.fn=function(e,t){(Array.isArray(t.selectors)?t.selectors:[t]).map((function(t){e.matches(t.selector)&&e.removeAttr(t.attributes)}))}