Skip to content

Instantly share code, notes, and snippets.

@ykessler
Last active September 6, 2020 15:08
Show Gist options
  • Save ykessler/9f1b02da1f78b8eca0826a98f0a9c269 to your computer and use it in GitHub Desktop.
Save ykessler/9f1b02da1f78b8eca0826a98f0a9c269 to your computer and use it in GitHub Desktop.
// FROM https://stackoverflow.com/a/9624997/165673
javascript:if(!window.jQuery||confirm('Overwrite\x20current\x20version?\x20v'+jQuery.fn.jquery))(function(d,s){s=d.createElement('script');s.src='https://code.jquery.com/jquery.js';(d.head||d.documentElement).appendChild(s)})(document);
@ykessler
Copy link
Author

NOTE: The jquery link must be https, otherwise you'll get blocked on Chrome when on an https page. For example:

Mixed Content: The page at 'https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams' was loaded over HTTPS, but requested an insecure script 'http://code.jquery.com/jquery.js'. This request has been blocked; the content must be served over HTTPS."

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