Skip to content

Instantly share code, notes, and snippets.

@bkemper
Last active April 3, 2018 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bkemper/4c1e9a87f4b0b921711ea6791c265cc0 to your computer and use it in GitHub Desktop.
Save bkemper/4c1e9a87f4b0b921711ea6791c265cc0 to your computer and use it in GitHub Desktop.
Ferdinand

Ferdinand

An unpacked Chrome extension that injects a script, waits a minute, and then throws an Error.

How to use me?

  1. Download or clone me, git clone https://gist.github.com/4c1e9a87f4b0b921711ea6791c265cc0.git
  2. Open chrome://extensions/
  3. Click "Load Unpacked"
  4. Select the "4c1e9a87f4b0b921711ea6791c265cc0" directory
  5. Open your web application
  6. Open the console tab in devtools to see Ferdinand at work
  7. Disable or delete the extension when finished testing
// Wait a minute for error your application to load
window.setTimeout(() => { throw new Error('Hello, Ferdinand!'); }, 1000);
const script = document.createElement('script');
script.src = chrome.extension.getURL('bull.js');
script.type = "text/javascript";
document.head.appendChild(script);
View raw

(Sorry about that, but we can’t show files that are this big right now.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment