Removing an Element

You can use removeChild function remove an element and the element's children. This technique is usually used by user scripts which remove advertisements. The next example remove element 'ads' and its children. var elm = document.getElementById('ads'); if(elm) { elm.parentNode.removeChild(elm); }