Skip to content

armgit / moli

Public Imported from GitHub
0

Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust

754 B
Raw Blame
(() => {
  const source = 'globalThis.__inlineHashRuns += 1;/*☃ 8*/';
  globalThis.__inlineHashRuns = 0;
  const root = document.body || document.documentElement;
  const counts = [];
  const script = text => {
    const element = document.createElement('script');
    element.text = text;
    root.appendChild(element);
    element.remove();
    counts.push(globalThis.__inlineHashRuns);
  };
  const handler = text => {
    const element = document.createElement('button');
    element.setAttribute('onclick', text);
    root.appendChild(element);
    element.click();
    element.remove();
    counts.push(globalThis.__inlineHashRuns);
  };
  script(source);
  handler(source);
  script(source + ' ');
  handler(source + ' ');
  return counts;
})()