Can embed any file in a PNG/WebM/GIF/JPEG and upload it to a third-party host through 4chan
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

11 lines
412 B

// This is injected ASAP on 4chan to prevent 4chanX from adding a CSP
// meta tag that prevents the Background WebWorker from running
const ocreate = document.createElement.bind(document);
document.createElement = (tag) => {
if (tag != "meta")
return ocreate(tag);
document.createElement = ocreate; // restore
return document.createElement('link'); // whatever to not make 4chanX crash
};