mirror of
https://git.coom.tech/fuckjannies/lolipiss.git
synced 2024-06-26 12:42:38 +00:00
12 lines
412 B
JavaScript
12 lines
412 B
JavaScript
|
// 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
|
||
|
};
|