User:HolyDanna/global.js

/** * Remove featured videos */ (function {   function hasChild(e) {        return e.attributes.hasOwnProperty('itemprop');    }    var videos = document.querySelectorAll('div[itemprop="video"]'),        children, len = videos.length, i;    if (!len) return;    i = 0;    for (i; i < len; i++) {        children = Array.prototype.filter.call(videos[i].parentElement.children, hasChild);        if (children.length) children[i].parentElement.removeChild(children[i]);    } });