Last active
April 10, 2018 07:43
-
-
Save wijhuang/11309f9a63f01ea64b5369b790356e7a to your computer and use it in GitHub Desktop.
Inject jQuery to any webpage
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
if (typeof(jQuery)=="function") console.log("Success") |
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
javascript:(function() { | |
function l(u, i) { | |
var d = document; | |
if (!d.getElementById(i)) { | |
var s = d.createElement('script'); | |
s.src = u; | |
s.id = i; | |
d.body.appendChild(s); | |
} | |
} | |
l('//code.jquery.com/jquery-3.2.1.min.js', 'jquery') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment