Skip to content

Instantly share code, notes, and snippets.

@rajeshpv
Forked from iwa4/chrome-console-load-jquery.js
Last active August 29, 2015 13:57
Show Gist options
  • Save rajeshpv/9399611 to your computer and use it in GitHub Desktop.
Save rajeshpv/9399611 to your computer and use it in GitHub Desktop.

Revisions

  1. rajeshpv revised this gist Mar 6, 2014. 1 changed file with 9 additions and 0 deletions.
    9 changes: 9 additions & 0 deletions chrome-console-load-jquery.js
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,14 @@
    var jq = document.createElement('script');
    jq.src = "//code.jquery.com/jquery-latest.min.js";
    document.getElementsByTagName('head')[0].appendChild(jq);

    !function () {
    var script = document.createElement("script");
    script.setAttribute("src", "//code.jquery.com/jquery-2.0.0.min.js");
    document.body.appendChild(script);
    }();


    $( "li" ).each(function( index ) {
    console.log( index + ": " + $( this ).text() );
    });
  2. @iwa4 iwa4 created this gist Jul 3, 2013.
    5 changes: 5 additions & 0 deletions chrome-console-load-jquery.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    !function () {
    var script = document.createElement("script");
    script.setAttribute("src", "//code.jquery.com/jquery-2.0.0.min.js");
    document.body.appendChild(script);
    }();