Last active
August 27, 2020 20:22
-
-
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!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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