Skip to content

Instantly share code, notes, and snippets.

@khalilovcmd
Created December 19, 2015 15:20
Show Gist options
  • Save khalilovcmd/6193991d9fb0ad240351 to your computer and use it in GitHub Desktop.
Save khalilovcmd/6193991d9fb0ad240351 to your computer and use it in GitHub Desktop.
to import lodash into chrome dev tools console
var el = document.createElement('script');
el.src = "https://raw.githubusercontent.com/lodash/lodash/3.10.1/lodash.min.js";
el.type = "text/javascript";
document.head.appendChild(el)
@mindpivot
Copy link

@Sheremetin try removing the "https:" from the URL and prefixing it with just "//"

@flpelluz
Copy link

flpelluz commented Oct 6, 2017

The error is because of trying to inject the code to this page (gist.github.com) - tmartensen's code works fine on any new blank page.

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