Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Tumblr gist insert
<script src=""></script>
<script type="text/javascript">
$(function() {
function(index, element) {
if ( $(element).attr('href').indexOf('') > 0 ) {
var divElement = $('<div></div>');
writeCapture.html(divElement, '<script src="'+$(element).attr('href')+'.js"></'+'script>');

This comment has been minimized.

Copy link
Owner Author

tryvin commented Nov 1, 2015

Use this so you can use the Rich text editor from Tumblr, all the other codes I saw needed to create a div element, this one just goes throw all a elements, and if it has on the url, it inserts the element!


This comment has been minimized.

Copy link

keitaito commented Mar 6, 2016

Where should I put this code? Within the header tag?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.