feat(scripts): add forbidden classlist property to content scripts fix method

This commit is contained in:
wanhose 2021-07-29 10:55:19 +02:00
parent b5920b5cba
commit aa407c7064

View File

@ -44,10 +44,12 @@ let selectorsFromNetwork = [];
*/
const fix = () => {
const html = document.documentElement;
const body = document.body;
const classListToRemove = ["ta-cc-modal-open"];
const facebook = document.getElementsByClassName("_31e")[0];
const html = document.documentElement;
if (body) body.classList.remove(...classListToRemove);
if (body) body.style.setProperty("overflow-y", "unset", "important");
if (facebook) facebook.style.setProperty("position", "unset", "important");
if (html) html.style.setProperty("overflow-y", "unset", "important");