mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
a271145b06
Co-Authored-By: atersolis <atersolis@atersolis.net>
9 lines
261 B
JavaScript
9 lines
261 B
JavaScript
const script = document.createElement('script');
|
|
script.src = './injectedfile.js';
|
|
document.body.appendChild(script);
|
|
|
|
const style = document.createElement('link');
|
|
style.rel = 'stylesheet';
|
|
style.href = './injectedstyle.css';
|
|
document.head.appendChild(style);
|