From 2a2b3dde0d30a98d98be9f9ec07869b6eaccdb43 Mon Sep 17 00:00:00 2001 From: Aaron Yarborough Date: Fri, 10 Apr 2020 14:54:11 +0100 Subject: [PATCH] Remove old code --- src/hider.ts | 44 -------------------------------------------- 1 file changed, 44 deletions(-) diff --git a/src/hider.ts b/src/hider.ts index cb8f3d3..1bf0709 100644 --- a/src/hider.ts +++ b/src/hider.ts @@ -37,48 +37,4 @@ export class TwitterHider { private trueStringOrNull(value: boolean) { return value ? "true" : null; } - - // hideRetweetCounts() { - // const elements = [ - // ...document.querySelectorAll(this.selectors.retweetContainer), - // ...this.findMainTweetCountByLabelText("Retweets") - // ]; - - // this.omitElements(elements); - // } - - // hideReplyCounts() { - // const elements = document.querySelectorAll(this.selectors.replyContainer); - // this.omitElements(elements); - // } - - // omitElements(elements) { - // elements.forEach((element) => { - // this.markElementAsProcessed(element); - - // const textElement = element.querySelector(this.selectors.countText); - - // if (textElement !== null) - // this.omitElement(textElement); - // }); - // } - - // omitElement(element) { - // element.innerHTML = "???"; - // } - - // markElementAsProcessed(element) { - // element.setAttribute(this.processedAttribute, true); - // } - - // findMainTweetCountByLabelText(labelText) { - // return [...document.querySelectorAll(this.selectors.countText)] - // .filter(element => element.innerHTML === labelText) - // .map(element => { - // const wrappingDiv = element.parentElement.parentElement.parentElement; - // const countContainer = wrappingDiv.children[0]; - - // return countContainer; - // }); - // } } \ No newline at end of file