Skip to content

Instantly share code, notes, and snippets.

@jfengq
Last active September 9, 2016 06:40
Show Gist options
  • Save jfengq/d328c033fad5ec34df67fcae7e0c7713 to your computer and use it in GitHub Desktop.
Save jfengq/d328c033fad5ec34df67fcae7e0c7713 to your computer and use it in GitHub Desktop.
(function() {
'use strict';
function removeAds () {
document.getElementById('ad') && document.getElementById('ad').remove();
document.getElementById('advertisement') && document.getElementById('advertisement').remove();
}
removeAds();
setInterval(function () {
removeAds();
}, 2000);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment