replace plain spaces

master
cynic 3 years ago committed by GitHub
parent b67d0c6cd6
commit 6315526d42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      tolerance.user.js

@ -15,6 +15,11 @@ function hex2ascii8(hex_)
str += String.fromCharCode(parseInt(hex.substr(i, 2), 16));
return str;
}
console.log("decoding hex");
const answers = Array.from(document.querySelectorAll(".ama-answer-content, .ama-author-name"));
answers.forEach(ans => ans.innerText = hex2ascii8(ans.innerText));
answers.forEach(function(ans) {
ans.innerText = ans.innerText.replaceAll(" ", "");
ans.innerText = hex2ascii8(ans.innerText);
});

Loading…
Cancel
Save