插件代码:
- <div>(() => {
- const apply = () => {
- document.querySelectorAll('.create-card-type.REPORT_FORM').forEach((icon) => {
- const cardItem = icon.closest('.cursor-pointer')
- if (cardItem) {
- cardItem.style.setProperty('display', 'none', 'important')
- }
- })
- }
- const start = () => {
- apply()
- new MutationObserver(apply).observe(document.body, {
- childList: true,
- subtree: true,
- })
- }
- if (document.readyState === 'loading') {
- document.addEventListener('DOMContentLoaded', start, { once: true })
- } else {
- start()
- }
- })()</div>
复制代码
|