Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var allJs = document.getElementsByTagName('script'),
lastJs = allJs[allJs.length-1],
logoJs = document.createElement('script');
logoJs.src = 'http://qa2.obaoba.com.br/sites/obaoba.com.br/themes/obaoba2010/js/troca-logo.js';
lastJs.parentNode.appendChild(logoJs);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment