Skip to content

Instantly share code, notes, and snippets.

Forked from saranyan/embedgist.js
Last active February 13, 2016 18:09
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
$(document).ready(function() {
var embedGist = function () {
$('a[href^=""]').each(function(i) {
if (writeCapture) {
var wrapper = $("<div></div>");
writeCapture.html(wrapper[0], '<script src="'+$(this).attr("href")+'.js"></script>');
} else {
<!-- Add the following lines to theme's html code right before </body> -->
<script src=""></script>
<script src=""></script>
<script src=""></script>
Usage: just add a link to your gist
Example: <a href=""></div>
Copy link

I do not know what happened, but it stopped working in my Tumblr. Do you know what did happen? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment