Skip to content

Instantly share code, notes, and snippets.

View paulshestakov's full-sized avatar

Paul Shestakov paulshestakov

View GitHub Profile
@paulshestakov
paulshestakov / obfuscate.mjs
Created February 10, 2024 15:18
obfuscate html string
import {JSDOM} from "jsdom"
const obfuscateString = (str) => {
return new Array(str.length).fill("*").join("");
};
const obfuscateElement = (element) => {
const attrs = element.getAttributeNames();
for (const attr of attrs) {
const value = element.getAttribute(attr);
const lol = kek + cheburek;