D
D
Denchik2015-01-07 03:00:01
JavaScript
Denchik, 2015-01-07 03:00:01

JavaScript How to remove a tag by its content?

I decided to remove the widget with muzzles (VKontakte) which weighs on almost every site and I can’t find information anywhere on how to remove a tag for its content or remove a tag with certain content (content) I will be glad to advice on this matter.
Here is the code to be removed.

<script type="text/javascript">
  document.write('<div><div id="vk_group"></div></div>');
  $(function () {
    if (document.getElementById("vk_group")) {
      VK.Widgets.Group("vk_group", {mode: 0, width: "240"}, 00000000);
    }
  });
</script>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri Petrashevich, 2015-01-07
@BelCoder

$('#vk_group').remove();
Does not work?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question