fork download
  1. var newWindow = window.open('https://c...content-available-to-author-only...l.com/');
  2. var newScript = document.createElement('script');
  3. function injectScript() {
  4. // The code to inject
  5. document.querySelector('ppc-content[key="footer-mestelFooterContent11"]').scrollIntoView();
  6. css_highlight = document.querySelector('ppc-content[key="footer-mestelFooterContent11"]')
  7. css_highlight.style.outline = '#FDFF47 solid 5px'
  8. }
  9. newScript.innerHTML = 'injectScript.toString();'
  10. newWindow.document.body.appendChild(newScript);
Runtime error #stdin #stdout #stderr 0.35s 39344KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
js: uncaught JavaScript runtime exception: ReferenceError: "window" is not defined.