Skip to content

Instantly share code, notes, and snippets.

@elmigranto
Last active January 21, 2017 19:43
Show Gist options
  • Save elmigranto/ac0902a4b12db53be548 to your computer and use it in GitHub Desktop.
Save elmigranto/ac0902a4b12db53be548 to your computer and use it in GitHub Desktop.
(function () {
var embedJquery = function (callback) {
var js = document.createElement('script');
js.src = 'https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js';
js.onload = function () {
jQuery.noConflict();
callback(jQuery);
};
js.onerror = function (e) {
console.error('Failed to load jQuery:', e);
};
document.getElementsByTagName('head')[0].appendChild(js);
};
var main = function ($) {
var removeReposts = function () {
$('.published_by_wrap').parents('.post').remove();
};
removeReposts();
$('.wall_module').bind('DOMSubtreeModified', removeReposts);
};
embedJquery(main);
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment