Load JQuery into any page using Firebug

前端 未结 5 967
攒了一身酷
攒了一身酷 2021-02-19 05:04

Does anyone have a snippet to load jquery onto any page from firebug? I often come across sites that I would prefer to inspect using familiar jq syntax.

For example, sa

相关标签:
5条回答
  • 2021-02-19 05:37

    Another way is to paste this to the Firebug console and hit the execute button.

    var fileref = document.createElement("script");
    fileref.setAttribute("type", "text/javascript");
    fileref.setAttribute("src", "http://code.jquery.com/jquery-latest.min.js");
    document.head.appendChild(fileref);
    

    UPDATE: Use following snippet to inject jQuery into a website that uses HTTPS:

    var fileref = document.createElement("script");
    fileref.setAttribute("type", "text/javascript");
    fileref.setAttribute("src", "https://code.jquery.com/jquery-latest.min.js");
    document.head.appendChild(fileref);
    
    0 讨论(0)
  • 2021-02-19 05:48

    Just saw this bookmarklet for injecting jQuery in another thread

    0 讨论(0)
  • 2021-02-19 05:51

    Check out FireQuery

    0 讨论(0)
  • 2021-02-19 05:52

    check out jQuerify

    0 讨论(0)
  • 2021-02-19 05:53

    You can also use the include function from the Console with either the URL to jQuery or by using the predefined alias, like this:

    include("jquery")
    

    See here for more detail.

    0 讨论(0)
提交回复
热议问题