puppeteer/test/assets/initiator.js

9 lines
261 B
JavaScript
Raw Normal View History

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);