From 1393f99b39906f85689f7781da188e6fb414eaf6 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> Date: Tue, 14 Feb 2023 11:53:09 +0530 Subject: Added some style changes. --- src/scripts/optimize/index.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/scripts/optimize/index.ts') diff --git a/src/scripts/optimize/index.ts b/src/scripts/optimize/index.ts index 70cbac3..4acf66f 100644 --- a/src/scripts/optimize/index.ts +++ b/src/scripts/optimize/index.ts @@ -1,7 +1,7 @@ -import { replaceAttributes } from "@/utils/replace-attributes"; +import { modifyDOM, DOMModifier } from "@/utils/modify-dom"; -replaceAttributes([ - ["head > script:nth-child(34)", { src: null }], - ["head > script:nth-child(36)", { src: null, innerHTML: "$.prototype.nivoSlider = () => {};" }], - ["head > script:nth-child(43)", { src: null }] +modifyDOM([ + new DOMModifier("head > script:nth-child(34)", { src: null }), + new DOMModifier("head > script:nth-child(36)", { src: null, innerHTML: "$.prototype.nivoSlider = () => {};" }), + new DOMModifier("head > script:nth-child(43)", { src: null }) ]); -- cgit v1.2.3