Remove Reddits Recent-Sidebar

Remove Reddit recent pages and left nav recent section elements

// ==UserScript==
// @name         Remove Reddits Recent-Sidebar
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Remove Reddit recent pages and left nav recent section elements
// @author       Helugo
// @match        https://www.reddit.com/*
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    // Remove Reddit recent pages element
    var recentPages = document.getElementById("reddit-recent-pages");
    if (recentPages) {
        recentPages.remove();
    }

    // Remove left nav recent section element
    var leftNavRecentSection = document.querySelector("faceplate-loader[name='left-nav-recent-section']");
    if (leftNavRecentSection) {
        leftNavRecentSection.remove();
    }
})();