[Prototype] Remove all links with css selector


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. // remove all links with name="ChunkyBacon"
  2. $$('a[name="ChunkyBacon"]').each(function(item) {
  3. item.insert({before: item.innerHTML}).remove();
  4. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.