• Skip to primary navigation
  • Skip to content

Genesis Community

Resources for Genesis WordPress Theme Users

  • Facebook
  • Twitter
  • Slack
  • Wiki
  • Login
You are here: Home / Wikis / JS / Bookmarklet to include jQuery in Chrome’s console

Bookmarklet to include jQuery in Chrome’s console

javascript:let script=document.createElement('script');script.setAttribute('src','//code.jquery.com/jquery-latest.min.js'),script.addEventListener('load',function(){let a=document.createElement('script');document.body.appendChild(a)},!1),document.body.appendChild(script);

Source: https://gist.github.com/zxcvbnm4709/2656197#gistcomment-2322059
Notes:

Handy when you want to run jQuery in the Chrome console on any webpage as $ instead of jQuery. How to use: Press the bookmarklet once. Note that there will be no visual feedback.

Posted by: Sridhar Katakam Category: JS

« Resetting select menu value in all other select menus

Copyright © 2019 · Genesis Sample on Genesis Framework · WordPress · Log in