Skip to content

Instantly share code, notes, and snippets.

@h4r3krsna
Last active August 27, 2020 20:22
Show Gist options
  • Save h4r3krsna/11c51a2b6d60802da51937815261da1a to your computer and use it in GitHub Desktop.
Save h4r3krsna/11c51a2b6d60802da51937815261da1a to your computer and use it in GitHub Desktop.
Dynamically enable jQuery on the front-end from a browser's Dev console!
// copy and paste the following directly into the developer console:
var $head = document.getElementsByTagName('head')[0];
var $jQuery = document.createElement('script');
$jQuery.setAttribute('src', 'https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js');
$jQuery.setAttribute('integrity', 'sha384-ZvpUoO/+PpLXR1lu4jmpXWu80pZlYUAfxl5NsBMWOEPSjUn/6Z/hRTt8+pR6L4N2');
$jQuery.setAttribute('crossorigin', 'anonymous');
$head.appendChild($jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment