Forked from cou929/load-external-script-snippet.js
Last active
April 13, 2017 03:03
-
-
Save floydpink/d3693ebebd99985eb56318e21a2f76c2 to your computer and use it in GitHub Desktop.
Revisions
-
floydpink revised this gist
Apr 13, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -16,4 +16,4 @@ })() // compressed version javascript:(function(d,u,s){s=d.createElement('script');s.type='text/javascript';s.charset='utf-8';s.src=u;d.body.appendChild(s)})(document,'https://kollavarsham.org/smc-webfonts/scripts/bookmarklet.es5.min.js') -
cou929 revised this gist
Sep 20, 2010 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ /** * load-external-script-snippet.js * Kosei Moriyama <cou929@gmail.com> * -
cou929 created this gist
Sep 20, 2010 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ /* * load-external-script-snippet.js * Kosei Moriyama <cou929@gmail.com> * * Simple code snippet for loading external script from a bookmarklet. * Replace example url of script to your target script url before use. */ (function() { var u = 'http://example.com/bookmarklet.js'; var s = document.createElement('script'); s.type = 'text/javascript'; s.charset = 'utf-8'; s.src = u; document.body.appendChild(s); })() // compressed version javascript:(function(d,u,s){s=d.createElement('script');s.type='text/javascript';s.charset='utf-8';s.src=u;d.body.appendChild(s)})(document,'http://example.com/bookmarklet.js')