Skip to content

Instantly share code, notes, and snippets.

@seonews-ru
Last active June 24, 2018 11:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seonews-ru/b368a302112f6660764b9e249100db10 to your computer and use it in GitHub Desktop.
Save seonews-ru/b368a302112f6660764b9e249100db10 to your computer and use it in GitHub Desktop.
jQuery-код
(function($){
setInterval(() => {
$.each($('iframe'), (arr,x) => {
let src = $(x).attr('src');
if (src && src.match(/(ads-iframe)|(disqusads)/gi)) {
$(x).remove();
}
});
}, 300);
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment