Last active
December 22, 2015 03:19
-
-
Save moyashipan/6409832 to your computer and use it in GitHub Desktop.
Template of bookmarklet with jQuery
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(){var s,d,u='//gist.github.com/moyashipan/6409832/raw/main.js'; d=document;s=d.createElement('script');s.setAttribute('src',u);d.documentElement.appendChild(s);}()) | |
*/ | |
(function(){ | |
var u = 'http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'; | |
var d = document; | |
var s = d.createElement('script'); | |
s.setAttribute('src', u); | |
d.documentElement.appendChild(s); | |
var clearId = setInterval(function(){ | |
if (window.jQuery) { | |
clearInterval(clearId); | |
(function(){ | |
alert('hoge'); | |
}()); | |
} | |
}, 100); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment