forked from rDrama/rDrama
hopefully-unbreakable fix to the transform issue
parent
495fc103ec
commit
cc44c09008
|
@ -7745,10 +7745,6 @@ body {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
p { /* fix the transform:exploit */
|
|
||||||
overflow: hidden !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
#sub-name {
|
#sub-name {
|
||||||
font-size: max(14px, 1.2vw);
|
font-size: max(14px, 1.2vw);
|
||||||
}
|
}
|
||||||
|
|
|
@ -645,6 +645,11 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=False, count_emojis
|
||||||
link["target"] = "_blank"
|
link["target"] = "_blank"
|
||||||
link["rel"] = "nofollow noopener"
|
link["rel"] = "nofollow noopener"
|
||||||
|
|
||||||
|
for child in link.findChildren():
|
||||||
|
if 'transform' in child.get("style", "").lower():
|
||||||
|
del link["href"]
|
||||||
|
break
|
||||||
|
|
||||||
sanitized = str(soup).replace('<html><body>','').replace('</body></html>','').replace('/>','>')
|
sanitized = str(soup).replace('<html><body>','').replace('</body></html>','').replace('/>','>')
|
||||||
|
|
||||||
captured = []
|
captured = []
|
||||||
|
|
Loading…
Reference in New Issue