Compare commits
2 Commits
13181fa275
...
767048d79b
| Author | SHA1 | Date | |
|---|---|---|---|
| 767048d79b | |||
|
|
37e872809b |
@ -34,6 +34,12 @@ export class ReplyEvent extends Event {
|
||||
img.replaceWith(document.createTextNode(src));
|
||||
});
|
||||
|
||||
// Replace <video> with just their src
|
||||
newMessage.querySelectorAll('video').forEach(vid => {
|
||||
const src = vid.src || vid.currentSrc || vid.querySelector('source').src;
|
||||
vid.replaceWith(document.createTextNode(src));
|
||||
});
|
||||
|
||||
// Replace <iframe> with their src
|
||||
newMessage.querySelectorAll('iframe').forEach(iframe => {
|
||||
const src = iframe.src || iframe.currentSrc;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user