Gandor / dsl full screen no clutter

// ==UserScript==
// @name         dsl full screen no clutter
// @namespace    http://tampermonkey.net/
// @version      0.2.1
// @description  use more then just 800px and remove unused parts
// @author       Gandor
// @license      MIT
// @match        http://*.dsl.sk/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    var newsBox=document.getElementById('news_box')
    var body = document.getElementById('body')
    if (newsBox) {
        var newsBoxWrapper = document.createElement('div')
        newsBoxWrapper.className="news-box-wrapper"
        Array.from(newsBox.childNodes).forEach(node=>newsBoxWrapper.append(node))
        var next = document.querySelector('.small_box_title')
        next && newsBoxWrapper.append(next)
        newsBox.append(newsBoxWrapper)
        body.insertBefore(newsBox, body.firstChild)
        newsBox.style.width='auto'
    }

    var articleNode = document.querySelector('.article_body');
    var removeElements = [
        document.getElementById('menu').parentElement,
        document.getElementById('header'),
        document.querySelector('.fb-share-button'),
        document.getElementById('article_menu'),
    ].concat(Array.from(document.querySelectorAll("img[src$='article_perex.gif']")),
             Array.from(document.querySelectorAll('iframe')).filter(itm=>articleNode && !articleNode.contains(itm)
    ));
    if (!body || body.childElementCount !== 1) {
        removeElements.push(document.querySelector('#body>table'))
    }
    removeElements.forEach(item=>item && item.parentElement.removeChild(item));
    document.querySelector('table').style.width='100%';
    document.querySelectorAll('table td').forEach(item=>{item.style.width='auto'});
    document.getElementById('bg').style.width='100%';
    if (articleNode) {
        while(articleNode.nextElementSibling && articleNode.nextElementSibling.nodeName !== 'TABLE') {
            articleNode.nextElementSibling.parentElement.removeChild(articleNode.nextElementSibling);
        }
    }
    var temp=document.createElement('div')
    temp.innerHTML=['<style>div,div#body,table,body,td{background:#333;color:#bbb;}',
                    ' div#body a{color:#39c} .entry_info{color: #70b} .pp_hoverContainer {background:transparent}',
                    ' #body>#news_box{background:transparent;border:0 none;text-align:center;font-size:14px}',
                    ' .news-box-wrapper{display:inline-block;text-align:left}</style>'].join('');
    document.querySelector('head').appendChild(temp.children[0]);
    var rss = document.querySelector('a[href$="rss_articles.php"]')
    rss.innerHTML='HOME'
    rss.setAttribute('href','/')
    rss.setAttribute('style','color:#39c;margin-right:20px;font-size:16px;font-style: italic;')
})();