Last active
January 21, 2017 19:43
-
-
Save elmigranto/ac0902a4b12db53be548 to your computer and use it in GitHub Desktop.
This file contains 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 characters
(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